05.07.2011, 16:01
pawn Код:
if(!strcmp(cmd, "/arranjarveiculo", true))
{
tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Use: /arranjarveiculo MODELO"); new Modelo = strval(tmp);
if(GetPVarInt(playerid, "UsouCMD") == 1) return SendClientMessage(playerid, -1, "<!> Vocк jб usou 1x o cmd.");
SetPVarInt(playerid, "UsouCMD", 1); //usou o cmd
SetTimerEx("j_Unblock",SEGUNDOS,false,"i", playerid); //timer
new Float:Pos[4]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); GetPlayerFacingAngle(playerid, Pos[3]);
CreateVehicle(Modelo, Pos[0],Pos[1],Pos[2],Pos[3], -1, -1, 10000);
//Resto do comando
return true;
}
forward j_Unblock(playerid); public j_Unblock(playerid) return SetPVarInt(playerid, "UsouCMD", 0);
< ~~ reputation