[pawn] else if (strcmp(cmd, "Fun", true) == 0)
{
tmp = strtok( cmdtext, idx );
new i;
if (!strlen(tmp)) SendClientMessage(playerid, 0xFFFF00AA,"[Error] Write /c fun on/off");
else
{
if (strcmp(tmp, "on", true) == 0)
{
for (i = 0; i <= MAX_PLAYERS; i ++)
{
EnableShootInAir(i,1);
SetPlayerWeapon(i,32,10000);
SetGravity(21);
}
SendClientMessageToAll(0xFFFF00AA, " Shoot in air - Kill Everyone!! ");
GameTextForAll("~l~Shoot in air on!!");
}
else if (strcmp(tmp, "off", true) == 0) {
for (i = 0; i <= MAX_PLAYERS; i ++)
{
EnableShootInAir(i,0);
SetGravity(100);
}
SendClientMessageToAll(0xFFFF00AA, " Shoot in air - DeActivated!! ");
GameTextForAll("~l~Shoot in air off!!");
}
}
return 1;
}[/pawn]
Enjoy and Comment