[Pedido] /arranjarveiculo
#5

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);
Espero ter ajudado x )

< ~~ reputation
Reply


Messages In This Thread
[Pedido] /arranjarveiculo - by blackscripter - 05.07.2011, 15:55
Re: [Pedido] /arranjarveiculo - by Dark.Angel - 05.07.2011, 15:56
Re: [Pedido] /arranjarveiculo - by Kuddy - 05.07.2011, 15:57
Re: [Pedido] /arranjarveiculo - by blackscripter - 05.07.2011, 15:58
Re: [Pedido] /arranjarveiculo - by Ricop522 - 05.07.2011, 16:01
Re: [Pedido] /arranjarveiculo - by TheGarfield - 05.07.2011, 16:03
Re: [Pedido] /arranjarveiculo - by Dark.Angel - 05.07.2011, 16:09
Re: [Pedido] /arranjarveiculo - by blackscripter - 05.07.2011, 16:12
Re: [Pedido] /arranjarveiculo - by Dark.Angel - 05.07.2011, 16:16
Re: [Pedido] /arranjarveiculo - by blackscripter - 05.07.2011, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)