05.03.2010, 02:41
pawn Код:
public OnPlayerSpawn(playerid)
{
if(minigun[playerid] == 1)
{
GivePlayerWeapon(playerid, 38, 9999);
new iRandom = random(sizeof(MiniRandSpawn));
SetPlayerPos(playerid, MiniRandSpawn[iRandom][0], MiniRandSpawn[iRandom][1],MiniRandSpawn[iRandom][2]);
SetPlayerFacingAngle(playerid, MiniRandSpawn[iRandom][3]);
}
else if(cagedm[playerid] == 1)
{ // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< this
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 31, 9999);
new iRandom = random(sizeof(CageRandSpawn));
SetPlayerPos(playerid, CageRandSpawn[iRandom][0], CageRandSpawn[iRandom][1],CageRandSpawn[iRandom][2]);
SetPlayerFacingAngle(playerid, CageRandSpawn[iRandom][3]);
}
else if(area51[playerid] == 1)
{
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 16, 9999);
SetPlayerPos(playerid, AreaRandSpawn[iRandom][0], AreaRandSpawn[iRandom][1],AreaRandSpawn[iRandom][2]);
SetPlayerFacingAngle(playerid, AreaRandSpawn[iRandom][3]);
} // <<<<<<<<<<<<<<<<<<<<<<<<<<<< this
return 1;
}