11.05.2011, 13:40
If tryd to make this several times, But if failed,
Because im pretty new in this i would appericiate it if you can make the Entire Pawno Code for /gotopos or /setpos.
This is how i usaly go to an possition, Like, /gotols:
EDIT:
I have tryd something in desperateness:
Maby anyone can make that work
Because im pretty new in this i would appericiate it if you can make the Entire Pawno Code for /gotopos or /setpos.
This is how i usaly go to an possition, Like, /gotols:
Код:
if(strcmp(cmd, "/gotols", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); DOO_SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { DOO_SetPlayerPos(playerid, 1529.6,-1691.2,13.3); } SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported !"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1; }
I have tryd something in desperateness:
Код:
if(strcmp(cmd, "/sppos", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /sppos [pos.]"); return 1; } new pos; pos = SetPlayerPos(tmp); if(!strlen(tmp)) { if (PlayerInfo[playerid][pJob] == 30) { SetPlayerPos(playerid, pos) } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not in the Special Person Group!"); } } return 1; }