24.06.2011, 05:47
if (strcmp("/gearme", cmdtext, true, 10) == 0)
{
GameTextForPlayer(playerid, "Cheat found! Multiple weapons and full armour given.", 5000, 4);
GivePlayerWeapon(playerid, 24, 700);
GivePlayerWeapon(playerid, 31, 1400);
SetPlayerArmour(playerid, 100);
return 1;
}
For instance, after a player types /gearme, he/she can't use this command again unless they respawn/die.
(It's to keep people from entering /gearme over and over and over again.)
{
GameTextForPlayer(playerid, "Cheat found! Multiple weapons and full armour given.", 5000, 4);
GivePlayerWeapon(playerid, 24, 700);
GivePlayerWeapon(playerid, 31, 1400);
SetPlayerArmour(playerid, 100);
return 1;
}
For instance, after a player types /gearme, he/she can't use this command again unless they respawn/die.
(It's to keep people from entering /gearme over and over and over again.)