02.11.2011, 16:01
PHP код:
if(strcmp(cmd, "/irpos", true) == 0)
{
if(Player[playerid][pAdmin] < 3)
return SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem permissгo para usar este comando!");
new Float:X,Float:Y,Float:Z;
new tmp[24], idx; tmp = strtok(params, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "[USO] Digite as coordenadas");
X = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "[USO] Digite Y");
Y = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "[USO] Digite Z");
Z = strval(tmp);
SetPlayerPos(playerid, X,Y,Z);
SendClientMessage(playerid, -1, "[INFO] Vocк foi teleportado.");
SetPlayerInterior(playerid,0);
Player[playerid][pInt] = 0;
return 1;
}