15.05.2014, 07:13
Here
This is my whole on player spawn ...
getting error there only !
Код:
public OnPlayerSpawn(playerid) { if(GetPlayerTeam(playerid) == TEAM_COPS) { SetPlayerPos(playerid, 1565.7843,-1694.2400,5.8906); SetPlayerColor(playerid, TEAM_COPS_COLOR); } if(GetPlayerTeam(playerid) == TEAM_CIVILIANS) { SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918); SetPlayerColor(playerid, TEAM_CIVILIANS_COLOR); ShowPlayerDialog(playerid, DIALOG_SKILL , DIALOG_STYLE_LIST, "Please Choose a skill", "Rapist\nPickPocket\nMechanic\nHitman\nWeaponDealer\nDrugDealer", "Choose", "Cancel"); } if(GetPlayerTeam(playerid) == TEAM_RAPIST) { SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918); SetPlayerColor(playerid, COLOR_GHOSTWHITE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,5,1,17,3,22,100,41,200); } if(GetPlayerTeam(playerid) == TEAM_PICKPOCKET) { SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918); SetPlayerColor(playerid, COLOR_GHOSTWHITE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,15,1,22,200,29,200); } if(GetPlayerTeam(playerid) == TEAM_MECHANIC) { SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918); SetPlayerColor(playerid, COLOR_GHOSTWHITE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,10,1,11,1,12,1,13,1); } if(GetPlayerTeam(playerid) == TEAM_HITMAN) { SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918); SetPlayerColor(playerid, COLOR_GHOSTWHITE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,4,1,23,200,25,75,34,50); } if(GetPlayerTeam(playerid) == TEAM_WEAPONDEALER) { SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918); SetPlayerColor(playerid, COLOR_GHOSTWHITE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,50,26,20,32,100,30,200); } if(GetPlayerTeam(playerid) == TEAM_DRUGDEALER) { SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918); SetPlayerColor(playerid, COLOR_GHOSTWHITE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,50,32,100,30,200); } return 1; }
getting error there only !