24.06.2014, 01:35
(
Last edited by Bek_Loking; 24/06/2014 at 03:17 PM.
)
Hello. For last 7 months I've been amazed and fascinated by roleplay servers. and when a server on which I played Shut down, because of hacker group which managed to ruin the server and everything, I decided why not learn pawno. Now what I wanna learn, is how to make jobs. I have an idea in my mind but I'm not sure if it's any good, and if there is a better way. My idea is:
Thats my half- idea how to make a job. Now take in consideration that I'm very new to scripting so. Do not paste a code just explain how can I make one, with this my method
PHP Code:
new job[MAX_PLAYERS]
PHP Code:
CMD:somejob(playerid, params[])
{
if(job[playerid] = 1) return SendClientMessage(playerid, color_red, "You already have a job");
if(!IsPlayerInRangeOfPoint(playerid, range,x,y,z)) return SendClientMessage(playerid, color_red, "You're not near blabla");
if(IsPlayerInRangeOfPoint(playerid, range,x,y,z))
{
job[playerid] = 1;
SetPlayerCheckpoint(playerid, coords);
}
return 1;
}