SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (/showthread.php?tid=185882)



Help - Jack_Blade - 26.10.2010

how to make these lines work as command?Materials smugglers can take mats to eating places what has checkpoints..
Help plz=)I tryd my self but nothing

if(MatsHolding[playerid] == 25)
{
if(PlayerInfo[playerid][pJob] == 22)
{
DisablePlayerCheckpoint(playerid);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(playerid, 800);
SendClientMessage(playerid, COLOR_WHITE, "You have sold 25 mats to mats pank.");
MatsHolding[playerid] = 0;
matssys[MatsAmmount] += 25;
GameTextForPlayer(playerid, "~w~Text..!", 5000, 1);
SaveMatsSystem();
}
return 1;
}


sry for my english