Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/gotoxyz", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "[OscL.Ro] /gotopos <[X] [Y] [Z]>");
- return 1;
- }
- else
- if(AdminDuty[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "[OscL.Ro]Nu esti On Duty pentru a avea acces la aceasta comanda !");
- new Float:para1;
- new Float:para2;
- new Float:para3;
- para1 = strval(tmp);
- tmp = strtok(cmdtext, idx);
- para2 = strval(tmp);
- tmp = strtok(cmdtext, idx);
- para3 = strval(tmp);
- if(PlayerInfo[playerid][pAdmin] >= 1339)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, para1,para2,para3);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- }
- else
- SetPlayerPos(playerid, para1,para2,para3);
- SendClientMessage(playerid, COLOR_YELLOW2, "[OscL.Ro]Ai fost teleportat la coordonatele puse !");
- PlayerInfo[playerid][pInt] = 0;
- }
- else
- {
- SendError(playerid,cmd);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement