28.05.2013, 14:11
Код:
public OnPlayerRequestClass(playerid, classid) { if(hasAssassin == false) // If there is no Assassin on the server he becomes it { new string[64]; SetSpawnInfo(playerid, 0, 285, 1525.8599,938.2324,10.8203, 1, 0, 0, 0, 0, 0, 0); format(string,sizeof(string),"The assassin has joined with the id: %d",playerid); print(string); PlayerVar[playerid][isAssassin] = 1; SpawnPlayer(playerid); GivePlayerWeapon(playerid, 34, 99999999); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 44, 1); SetPlayerColor(playerid, 0xFFF0000); TextDrawColor(gTextDraw, 0xFF01111); TextDrawSetString(gTextDraw, "You are the assassin, type /help for help."); TextDrawShowForPlayer(playerid, gTextDraw); SetTimer("destroy", 8000, false); }