SA-MP Forums Archive
weapons by problem - 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: weapons by problem (/showthread.php?tid=566072)



weapons by problem - Joni AA - 03.03.2015

I solved the problem here is the code
Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,color_wanted,"You are not admin");
if(GetPlayerMoney(playerid) < 0)
return SendClientMessage(playerid, 0, "You dont have enough cash");
GivePlayerMoney(playerid, -0);
GivePlayerWeapon(playerid, 38, 999);



Re: weapons by problem - Kenway - 03.03.2015

Код:
 if(!IsPlayerAdmin(playerid)
You forget to added !


Re: weapons by problem - Joni AA - 03.03.2015

I solved it already


Re: weapons by problem - Vince - 03.03.2015

SOLVED Admin remove this user! Just because your problem is solved, it doesn't mean that the thread couldn't be useful to someone else. This is a community forum, not your personal helpdesk.