25.07.2012, 11:00
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/desbug", true) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid, x, y,z+3);
TogglePlayerControllable(playerid,1);
return 1;
}
return SendClientMessage(playerid, Vermelho,"[ERRO] Comando Inexistente!");
}
pawn Код:
new cmd[156], idx;
cmd = strtok(cmdtext, idx);