07.05.2013, 16:03
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"
{
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"