[Ajuda] Respawnar veiculos
#5

pawn Код:
CMD:respawncars(playerid) {

    for (new i = MAX_VEHICLES; i != 0; --i) {

        SetVehicleToRespawn(i);
    }
    SendClientMessageToAll(-1, "Um respawn de veнculos do servidor foi efetuado!");
    return true;
}

CMD:ircarro(playerid, params[] ) {

    if (Jogador[playerid][Admin] == 0) return SendClientMessage(playerid, -1, "Vocк nгo й admin!");

    if ( isnull (params) ) return SendClientMessage(playerid, -1, "Use: /ircarro [Id do carro]");
   
    if (0 > strval(params) > MAX_VEHICLES ) return SendClientMessage(playerid, -1, "Veнculo invalido!");
   
    new Float: Pos[3];
    GetVehiclePos(strval(params), Pos[0], Pos[1], Pos[2] );
    SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2] );
   
    new pStr[80];
    format ( pStr, sizeof pStr, "{FFA7F6}[Aviso Staff]: {D9D9D9} Transportado com sucesso para o veнculo %i.", strval(params) );
    SendClientMessage(playerid, -1, pStr );


    return true;
}
Reply


Messages In This Thread
Respawnar veiculos - by Cidiei - 21.04.2013, 01:09
Re: Respawnar veiculos - by lmsfull - 21.04.2013, 05:19
Re: Respawnar veiculos - by Delete_ - 21.04.2013, 05:33
Re: Respawnar veiculos - by Cidiei - 22.04.2013, 00:22
Re: Respawnar veiculos - by Gii - 22.04.2013, 01:36

Forum Jump:


Users browsing this thread: 3 Guest(s)