17.07.2009, 06:12
Code:
forward PromotePlayerToPoliceOfficer(playerid); public PromotePlayerToPoliceOfficer(playerid) { new string[256]; new string2[256]; new PlayerName[MAX_PLAYER_NAME]; PlayerScore = GetPlayerScore(playerid); GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); SetPlayerSkin(playerid, 285); GivePlayerWeapon(playerid, 29, 1000); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 35, 20); SetPlayerHealth(playerid, 500); SetPlayerArmour(playerid, 500); SetPlayerColor(playerid, COLOR_TRANSPARENT); format(string, sizeof(string), "%s became a Police Officer! Watch out, he/she could be everywhere... Ready to kill you...", PlayerName); format(string2, sizeof(string2), "Type /quitjob to quit your Job as a Police Officer"); SendClientMessageToAll(COLOR_BLUE, string); SendClientMessage(playerid, COLOR_BLUE, string2); SetPlayerScore(playerid, PlayerScore -15); PlayerData[playerid][PoliceOfficer] = 1; PoliceOfficerLimit++; return 1; }
stock PromoteToPoliceOfficer(playerid);
instead of forwarding?