16.05.2009, 18:38
Ok so i made a /buyweed then /smokeweed
But there is a problem, Even though you didint /buyweed you can still /smokeweed please help, I am not experinced
Код:
if (strcmp("/BuyWeed", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xFFFFFFFF,"You come past a drug dealer and buy some weed..."); SendClientMessage(playerid,0xFFFFFFFF,"To Smoke this weed type /smokeweed"); GivePlayerMoney(playerid,-10000); return 1; } if (strcmp("/smokeweed", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xFFFFFFFF,"You roll up your joint lighting it....."); SetPlayerHealth(playerid,100); SetPlayerWeather(playerid,22); return 1; }