02.02.2009, 15:20
Quote:
Originally Posted by Haegon
How would I go about making it to where you have to type a command while standing on the icon to get the job?
|
Basically use a command like this:
pawn Код:
if(strcmp(cmdtext, "/join", true) == 0)
{
if(PlayerToPoint(1.0, playerid, hitcordx, hitcordy, hitcordz))
{
GameTextForPlayer(playerid, "You picked the Hitman Job! ~n~Type /acceptjob to accept.", 2500, 3); // hitman job
}
else if(PlayerToPoint(1.0, playerid, bincordx, bincordy, bincordz))
{
GameTextForPlayer(playerid, "You picked the Binman Job! ~n~Type /acceptjob to accept.", 2500, 3); // binman job.
}
return 1;
}
For the 'hitcord' and 'bincord' that is where the icon is placed for the matching job.