10.12.2013, 02:35
Sim, sу nao sei qual parte cara ;/ A do Spawn?
Й Gf Edit
Parte do spawn civil
Й Gf Edit
Parte do spawn civil
pawn Код:
//========================================
if(PlayerInfo[playerid][pOrigem] == 1)//Country Club - SF
{
XXAirBreak[playerid] += 3;
XXAirBreak[playerid] += 3;SetPlayerPos(playerid,892.0973,-1639.4764,14.9606);
SetPlayerFacingAngle(playerid, 181.2104);
ResetPlayerWeaponsBPH(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
if(PlayerInfo[playerid][pOrigem] == 2)//East Beach - LS
{
XXAirBreak[playerid] += 3;
XXAirBreak[playerid] += 3;SetPlayerPos(playerid,892.0973,-1639.4764,14.9606);
SetPlayerFacingAngle(playerid, 181.2104);
ResetPlayerWeaponsBPH(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
if(PlayerInfo[playerid][pOrigem] == 3)//Verona Beach - LS
{
XXAirBreak[playerid] += 3;
XXAirBreak[playerid] += 3;SetPlayerPos(playerid,892.0973,-1639.4764,14.9606);
SetPlayerFacingAngle(playerid, 181.2104);
ResetPlayerWeaponsBPH(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
if(PlayerInfo[playerid][pOrigem] == 4)//City Hall - SF
{
XXAirBreak[playerid] += 3;
XXAirBreak[playerid] += 3;SetPlayerPos(playerid,892.0973,-1639.4764,14.9606);
SetPlayerFacingAngle(playerid, 181.2104);
ResetPlayerWeaponsBPH(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
if(PlayerInfo[playerid][pOrigem] == 5)//East Los Santos - LS
{
XXAirBreak[playerid] += 3;
XXAirBreak[playerid] += 3;SetPlayerPos(playerid,892.0973,-1639.4764,14.9606);
SetPlayerFacingAngle(playerid, 181.2104);
ResetPlayerWeaponsBPH(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
if(PlayerInfo[playerid][pOrigem] == 6)//Downtown - SF
{
XXAirBreak[playerid] += 3;
XXAirBreak[playerid] += 3;SetPlayerPos(playerid,892.0973,-1639.4764,14.9606);
SetPlayerFacingAngle(playerid, 181.2104);
ResetPlayerWeaponsBPH(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
if ((gTeam[playerid]) == 1)
{
XXAirBreak[playerid] += 3;
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
XXAirBreak[playerid] += 3;SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
else
{
XXAirBreak[playerid] += 3;
XXAirBreak[playerid] += 3;SetPlayerPos(playerid, 1754.4994,-1907.7122,13.5658);
SetPlayerFacingAngle(playerid, 1.7634);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return true;
}
}
SetCameraBehindPlayer(playerid);
return 1;
}