public OnPlayerSpawn(playerid){ SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 998); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 998); SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); if(gPlayerClass[playerid] == TEAM_RAB){SetPlayerInterior(playerid,0);SetPlayerColor(playerid,COLOR_RED); TogglePlayerControllable(playerid, 1);GetPlayerPos(playerid,SX,SY,SZ);new Random = random(sizeof(RandomSpawnsSittes));SetPlayerPos(playerid, RandomSpawnsSittes[Random][0], RandomSpawnsSittes[Random][1], RandomSpawnsSittes[Random][2]); ResetPlayerWeapons(playerid);}else if(gPlayerClass[playerid] == TEAM_BOR) {new Random = random(sizeof(RandomSpawnsBor));SetPlayerPos(playerid, RandomSpawnsBor[Random][0], RandomSpawnsBor[Random][1], RandomSpawnsBor[Random][2]);if(GetPlayerScore(playerid) < 5000){ ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false);TogglePlayerControllable(playerid, 1);return SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\");}SetPlayerInterior(playerid,0);SetPlayerColor(playerid,COLOR_BLUE); TogglePlayerControllable(playerid, 1); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 30, 300); GivePlayerWeapon(playerid, 25, 25); }else if(gPlayerClass[playerid] == TEAM_KOR) { new Random = random(sizeof(RandomSpawnsKor));SetPlayerPos(playerid, RandomSpawnsKor[Random][0], RandomSpawnsKor[Random][1], RandomSpawnsKor[Random][2]); if(GetPlayerScore(playerid) < 5000) return SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\");ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false);TogglePlayerControllable(playerid, 1); }SetPlayerInterior(playerid,0);SetPlayerColor(playerid,COLOR_AQUA); TogglePlayerControllable(playerid, 1); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 300); GivePlayerWeapon(playerid, 22, 50); return 1;}
public OnPlayerSpawn(playerid){ SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 998); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 998); SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);if(gPlayerClass[playerid] == TEAM_RAB){SetPlayerInterior(playerid, 0);SetPlayerColor(playerid, COLOR_RED);TogglePlayerControllable(playerid, 1);GetPlayerPos(playerid, SX, SY, SZ);new Random = random(sizeof(RandomSpawnsSittes));SetPlayerPos(playerid, RandomSpawnsSittes[Random][0], RandomSpawnsSittes[Random][1], RandomSpawnsSittes[Random][2]);ResetPlayerWeapons(playerid);}else if(gPlayerClass[playerid] == TEAM_BOR){new Random = random(sizeof(RandomSpawnsBor));SetPlayerPos(playerid, RandomSpawnsBor[Random][0], RandomSpawnsBor[Random][1], RandomSpawnsBor[Random][2]);if(GetPlayerScore(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, \"Nincs elég pontod hogy õr lehess!\");elseForceClassSelection(playerid);TogglePlayerSpectating(playerid, false);TogglePlayerControllable(playerid, 1);SetPlayerInterior(playerid,0);SetPlayerColor(playerid,COLOR_BLUE);TogglePlayerControllable(playerid, 1);ResetPlayerWeapons(playerid);GivePlayerWeapon(playerid, 29, 500);GivePlayerWeapon(playerid, 30, 300);GivePlayerWeapon(playerid, 25, 25);}else if(gPlayerClass[playerid] == TEAM_KOR){new Random = random(sizeof(RandomSpawnsKor));SetPlayerPos(playerid, RandomSpawnsKor[Random][0], RandomSpawnsKor[Random][1], RandomSpawnsKor[Random][2]);if(GetPlayerScore(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, \"Nincs elég pontod hogy õr lehess!\");elseForceClassSelection(playerid);TogglePlayerSpectating(playerid, false);TogglePlayerControllable(playerid, 1);SetPlayerInterior(playerid, 0);SetPlayerColor(playerid, COLOR_AQUA);TogglePlayerControllable(playerid, 1);ResetPlayerWeapons(playerid);GivePlayerWeapon(playerid, 29, 500);GivePlayerWeapon(playerid, 31, 300);GivePlayerWeapon(playerid, 22, 50);}return 1;}
GetPlayerPos(playerid,SX,SY,SZ);
if(GetPlayerScore(playerid) < 5000){ ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false); TogglePlayerControllable(playerid, 1); return SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\");}
public OnPlayerSpawn(playerid){ SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 998); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 998); SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL); ResetPlayerWeapons(playerid); if(gPlayerClass[playerid] == TEAM_RAB) { SetPlayerColor(playerid,COLOR_RED); GetPlayerPos(playerid,SX,SY,SZ); new Random = random(sizeof(RandomSpawnsSittes)); SetPlayerPos(playerid, RandomSpawnsSittes[Random][0], RandomSpawnsSittes[Random][1], RandomSpawnsSittes[Random][2]); } else if(gPlayerClass[playerid] == TEAM_BOR) { if(GetPlayerScore(playerid) < 5000) { ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false); TogglePlayerControllable(playerid, 1); return SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\"); } new Random = random(sizeof(RandomSpawnsBor)); SetPlayerPos(playerid, RandomSpawnsBor[Random][0], RandomSpawnsBor[Random][1], RandomSpawnsBor[Random][2]); SetPlayerColor(playerid,COLOR_BLUE); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 30, 300); GivePlayerWeapon(playerid, 25, 25); } else if(gPlayerClass[playerid] == TEAM_KOR) { if(GetPlayerScore(playerid) < 5000) { ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false); TogglePlayerControllable(playerid, 1); return SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\"); } new Random = random(sizeof(RandomSpawnsKor)); SetPlayerPos(playerid, RandomSpawnsKor[Random][0], RandomSpawnsKor[Random][1], RandomSpawnsKor[Random][2]); SetPlayerColor(playerid,COLOR_AQUA); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 300); GivePlayerWeapon(playerid, 22, 50); } SetPlayerInterior(playerid,0); TogglePlayerControllable(playerid, 1); return 1;}
else if(gPlayerClass[playerid] == TEAM_KOR) { new Random = random(sizeof(RandomSpawnsKor));SetPlayerPos(playerid, RandomSpawnsKor[Random][0], RandomSpawnsKor[Random][1], RandomSpawnsKor[Random][2]); if(GetPlayerScore(playerid) < 5000) return SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\");ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false);TogglePlayerControllable(playerid, 1); }SetPlayerInterior(playerid,0);SetPlayerColor(playerid,COLOR_AQUA); TogglePlayerControllable(playerid, 1); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 300); GivePlayerWeapon(playerid, 22, 50);
if(GetPlayerScore(playerid) < 5000)
public OnPlayerSpawn(playerid){SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 998);SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 998);SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);if(gPlayerClass[playerid] == TEAM_RAB){ new Random = random(sizeof(RandomSpawnsSittes)); SetPlayerPos(playerid, RandomSpawnsSittes[Random][0], RandomSpawnsSittes[Random][1], RandomSpawnsSittes[Random][2]); TogglePlayerControllable(playerid, 1); SetPlayerInterior(playerid,0);SetPlayerColor(playerid,COLOR_RED);ResetPlayerWeapons(playerid);}else if(gPlayerClass[playerid] == TEAM_BOR){ new Random = random(sizeof(RandomSpawnsBor)); if(GetPlayerScore(playerid) >= 5000){ SetPlayerPos(playerid, RandomSpawnsBor[Random][0], RandomSpawnsBor[Random][1], RandomSpawnsBor[Random][2]); TogglePlayerControllable(playerid, 1); SetPlayerInterior(playerid,0); SetPlayerColor(playerid,COLOR_BLUE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 30, 300); GivePlayerWeapon(playerid, 25, 25);}else{ SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\"); ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false);}}else if(gPlayerClass[playerid] == TEAM_KOR){ new Random = random(sizeof(RandomSpawnsKor)); if(GetPlayerScore(playerid) >= 5000){ SetPlayerPos(playerid, RandomSpawnsKor[Random][0], RandomSpawnsKor[Random][1], RandomSpawnsKor[Random][2]); TogglePlayerControllable(playerid, 1); SetPlayerInterior(playerid,0); SetPlayerColor(playerid,COLOR_AQUA); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 300); GivePlayerWeapon(playerid, 22, 50);}else{ SendClientMessage(playerid,COLOR_RED,\"Nincs elég pontot hogy õr lehess!\"); ForceClassSelection(playerid); TogglePlayerSpectating(playerid, false); }}return 1;}