This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
/* Add to the top of your gamemode */
forward AntiCheat(playerid);
/* Add to OnGameModeInit callback */
SetTimer("AntiCheat",60000,1);
/* Add anywhere in your script */
public AntiCheat(playerid)
{
for(new i = 0; i < 50; i++)
{
if(IsPlayerConnected(i))
{
new Float:hp,
Float:armour;
if(GetPlayerHealth(i,hp) > 75)
{
/* HP over 75, do your stuff here */
}
else if(GetPlayerArmour(i,armour) > 75)
{
/* Armour over 75, do your stuff here */
}
}
}
return 1;
}
new MyString[64];
MyString[0] = "Hello";
MyString[1] = "Kitty";
if(!strlen(cmd)) // Called if cmd is null
if(strlen(text[0]) == 0) // Called if text is null