15.07.2012, 18:56
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;
}