[Ajuda] Identaзгo de um codigo
#3

pawn Код:
if(strcmp(cmd, "/favela", true) == 0)
{
   new pname[24];
   if(IsPlayerInAnyVehicle(playerid))
   {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,2229.4368,-1138.4003,25.3521);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.1080);
        GetPlayerName(playerid, pname, sizeof (pname));
        format(string, sizeof(string), "%s foi morar em San Fierro: {FFFF00}/SF", pname);
        SendClientMessageToAll(0x00FF00FF, string);
        SetPlayerInterior(playerid,0);
        PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
   }
   else
   {
        GetPlayerName(playerid, pname, sizeof (pname));
        format(string, sizeof(string), "%s para a favela: {FFFF00}/FAVELA", pname);
        SendClientMessageToAll(0x00FFFFFF, string);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,2229.4368,-1138.4003,25.3521);
        SetPlayerFacingAngle(playerid,190.9207);
        PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
   }
   return 1;
}
Reply


Messages In This Thread
Identaзгo de um codigo - by Bruno Alves - 15.07.2012, 18:52
Re: Identaзгo de um codigo - by ViniBorn - 15.07.2012, 18:55
Re: Identaзгo de um codigo - by .FuneraL. - 15.07.2012, 18:56
Re: Identaзгo de um codigo - by Crueliz0n - 15.07.2012, 18:56
Re: Identaзгo de um codigo - by Bruno Alves - 15.07.2012, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)