[Ajuda] AJUDA?
#3

pawn Код:
zcmd
CMD:trafico(playerid)
{
    if (IsPlayerInAnyVehicle(playerid))
    {
     new VehicleID;
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,2177.8599,-980.9830,64.4688);
     new name[MAX_PLAYER_NAME];
     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
     new string[45];
     format(string, sizeof(string), " %s Foi Para o trafico Comando /trafico ", name);
     SendClientMessageToAll(-1, string);
     SetPlayerInterior(playerid, 0);
     }else {
     new name[MAX_PLAYER_NAME];
     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
     SetPlayerPos(playerid,2177.8599,-980.9830,64.4688);
     SetPlayerInterior(playerid, 0);
     new string[45];
     format(string, sizeof(string), " %s Foi Para o trafico Comando /trafico ", name);
     SendClientMessageToAll(-1, string);
     }
     return 1;
}
pawn Код:
strcmp
if (strcmp("/trafico", cmdtext, true, 8) == 0)
{
    if (IsPlayerInAnyVehicle(playerid))
    {
     new VehicleID;
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,2177.8599,-980.9830,64.4688);
     new name[MAX_PLAYER_NAME];
     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
     new string[45];
     format(string, sizeof(string), " %s Foi Para o trafico Comando /trafico ", name);
     SendClientMessageToAll(-1, string);
     SetPlayerInterior(playerid, 0);
     }else {
     new name[MAX_PLAYER_NAME];
     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
     SetPlayerPos(playerid,2177.8599,-980.9830,64.4688);
     SetPlayerInterior(playerid, 0);
     new string[45];
     format(string, sizeof(string), " %s Foi Para o trafico Comando /trafico ", name);
     SendClientMessageToAll(-1, string);
     }
     return 1;
}
nem testei tenta ae nao observa a identaзao .
Reply


Messages In This Thread
AJUDA? - by maluco88 - 11.09.2012, 23:58
Re: AJUDA? - by Coreia - 12.09.2012, 00:11
Re: AJUDA? - by Q.I - 12.09.2012, 00:28
Re: AJUDA? - by Douglas_prt - 12.09.2012, 00:41
Re: AJUDA? - by maluco88 - 12.09.2012, 01:00
Re: AJUDA? - by Q.I - 12.09.2012, 01:15
Re: AJUDA? - by maluco88 - 12.09.2012, 01:55

Forum Jump:


Users browsing this thread: 1 Guest(s)