Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- if (strcmp(cmdtext, "/port", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
- {
- ShowPlayerDialog(playerid, 101, DIALOG_STYLE_LIST, "{FF0000}NewCity Teleport","Poznati Lokacii\nRabota\nOrganizacii\nSkladovi","Port", "Iskluci");
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Ne ste ovlasten da vlezete vo ovoj Panel !.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/gotocrash", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, -1197.0713,-940.0720,129.2188);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, -1197.0713,-940.0720,129.2188);
- }
- SendClientMessage(playerid, COLOR_GRAD1, " Teleportirani ste");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "{FF4040}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda.");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement