OnPlayerText problem.
#3

if(strcmp("hesoyam",text,false,7) == 0 && CanUseCheats[playerid] == true)
{
cmd_hesoyam(playerid, "");
return 0;
}
//=====================cmd=====================
CMD:hesoyam(playerid, params[])
{
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, 250000);
CheatTD(playerid);
return 1;
}

<...text,false,NUMBER) the numer is lenght. Example if you write "text,false,5)" then, you can use "hesoy"
Reply


Messages In This Thread
OnPlayerText problem. - by Rayan_black - 07.05.2013, 15:53
Re: OnPlayerText problem. - by Babul - 07.05.2013, 15:56
Re: OnPlayerText problem. - by f0cus - 07.05.2013, 16:03
Re: OnPlayerText problem. - by MP2 - 07.05.2013, 17:26
Re : OnPlayerText problem. - by Rayan_black - 07.05.2013, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)