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

Esse codigo с ta bem identado me ajudem tipo, vc coloca favela vc й teleportado atй la mais aparece o nome de outro player on.Lembrando q esse tele й para o carrro tbm

pawn Код:
if(strcmp(cmd, "/favela", true) == 0) {
   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 para a favela: {FFFF00}/FAVELA", 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
#2

pawn Код:
if(strcmp(cmd, "/favela", true) == 0)
{
    GetPlayerName(playerid, pname, sizeof (pname));
    format(string, sizeof(string), "%s foi para a favela: {FFFF00}/FAVELA", pname);
    SendClientMessageToAll(0x00FFFFFF, string);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
    SetPlayerInterior(playerid,0);
    if(IsPlayerInAnyVehicle(playerid))
    {
        new VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,2229.4368,-1138.4003,25.3521);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.1080);
    }
    else
    {
        SetPlayerPos(playerid,2229.4368,-1138.4003,25.3521);
        SetPlayerFacingAngle(playerid,190.9207);
    }
    return true;
}
Reply
#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
#4

@edit

ja respoderam /\
Reply
#5

vlw ae galera
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)