need help ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need help ! (
/showthread.php?tid=401874)
need help ! -
mineralo - 24.12.2012
well, I added pickups of gun for every job, but every body can pickup them, what's wrong?
pawn Код:
for(new i=0;i<MAX_JOBS;i++)
{
if(pickupid == JobIcons[i])
{
if(i != GetPlayerJobID(playerid))
{
scm(playerid,c_r,"( ! ) This weapon icon isn't for your job !");
return 0;
}
scm(playerid,COLOR_GREEN,"( ! ) You receive weapon of job !");
return 1;
}
}
Re: need help ! -
SKAzini - 24.12.2012
pawn Код:
for(new i; i < MAX_JOBS; i++)
{
if(pickupid == JobIcons[i])
{
if(i == GetPlayerJobID(playerid))
{
scm(playerid,COLOR_GREEN,"( ! ) You receive weapon of job !");
}
else
{
scm(playerid,c_r,"( ! ) This weapon icon isn't for your job !");
}
}
return 1;
}