07.01.2018, 11:50
Код:
CMD:takejob(playerid, params[]) { static id = -1; if ((id = Job_Nearest(playerid)) != -1) { if (PlayerData[playerid][pJob] == JobData[id][jobType]) return SendErrorMessage(playerid, "You have this job already."); PlayerData[playerid][pJob] = JobData[id][jobType]; return SendServerMessage(playerid, "You are now a %s - type \"/jobcmds\" for job commands.", Job_GetName(JobData[id][jobType])); } SendErrorMessage(playerid, "You are not in range of any job pickup."); return 1; }