[AJUDA] Veiculo Vip
#4

pawn Код:
if(!strcmp("/veiculolocalizar",cmdtext, true))
{
    new id, Float:Pharrel[3], str[30];
    if(unformat(params, "s[30]i", str[30], id)) return SendClientMessage(playerid, -1, "Use: /encontrarcarro [ID DO CARRO]");
    GetVehiclePos(id, pharrel[0], pharrel[1], pharrel[2]);
    SetVehicleCheckpoint(playerid, pharrel[0], pharrel[1], pharrel[2], 10.0);
    return GameTextForPlayer(playerid, "~r~Veiculo Vip Marcado!", 5000, 1);
}
//com a variavel do veiculo q vc postou acima.
if(!strcmp("/veiculolocalizar",cmdtext, true))
{
    new Float:Pharrel[3];
    if(PlayerInfo[playerid][pCarKey] == 0) return SendClientMessage(playerid, -1, "vc n tem carro");
    GetVehiclePos(PlayerInfo[playerid][pCarKey], pharrel[0], pharrel[1], pharrel[2]);
    SetVehicleCheckpoint(playerid, pharrel[0], pharrel[1], pharrel[2], 10.0);
    return GameTextForPlayer(playerid, "~r~Veiculo Vip Marcado!", 5000, 1);
}
//nesse n precisa do sscanf
Vai precisar do plugin SSCANF2.
Reply


Messages In This Thread
[AJUDA] Veiculo Vip - by Leo_Lost - 15.11.2011, 09:44
Re: [AJUDA] Veiculo Vip - by Pharrel - 15.11.2011, 10:11
Re: [AJUDA] Veiculo Vip - by Leo_Lost - 15.11.2011, 10:53
Re: [AJUDA] Veiculo Vip - by Pharrel - 15.11.2011, 11:15

Forum Jump:


Users browsing this thread: 3 Guest(s)