Advertisement
PaulCastellano

komanda

Jan 24th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. YCMD:naruciproizvode(playerid,params[],help)
  2. {
  3. #pragma unused help
  4. if( UlogovanIgrac[ playerid ] == 0 || PI[ playerid ][ pReg ] == 0 ) return SEM( playerid, "Ne mozete koristiti ovu komandu jer niste ulogovani/registrovani.");
  5. if( PI[ playerid ][ pAdmin ] < 1 && ACCmd[ playerid ] == 1) return SEM( playerid, "Komande mozete koristiti svake 2 sekunde.");
  6. CmdProtect( playerid );
  7. if( PI[ playerid ][ pKljucFirme ] == 9999) return SEM( playerid, "Ne mozete koristiti ovu komandu jer nemate firmu." );
  8. if( !IsPlayerInRangeOfPoint(playerid, 3, 1480.0066,-1797.8676,2349.6851)) return SEM( playerid, "Ne mozete koristiti ovu komandu jer se ne nalazite na salteru u opstini.");
  9. SPD(playerid, DFIRMA_PROIZVODI, DIALOG_STYLE_INPUT, ""COL_AZURO"Proizvodi narucivanje", "{FFFFFF}Upisite kolicinu proizvoda koju zelite da narucite!\nCena po proizvodu je 5$!", "Naruci", "Izlaz" );
  10. return true;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement