20.12.2011, 23:20
Alright, So i got this function to House all the stuff for a class (soldier) and it has SpawnPlayer In it, When i join, selected Soldier, it kicks me..?
Anyone got a conclusion to why this is happening? or a solution?
pawn Код:
public Soldier(playerid)
{
pSoldier[playerid] = 1;
new Team = GetPlayerTeam(playerid);
new pname[MAX_PLAYER_NAME], cstring[60];
GetPlayerName(playerid, pname, sizeof(pname));
format(cstring, sizeof(cstring),"info: %s Became a soldier! (TEAM: %d)" , pname, Team);
SendClientMessage(playerid, COLOR_TAN, cstring);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
GivePlayerWeapon(playerid, 22, 500);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 30, 500);
SetPlayerSkin(playerid, 287);
SpawnPlayer(playerid);
return 1;
}