10.06.2014, 09:45
this script is in my GM:
And this in a FS:
i want to know how to make InAFK & InDm work in both in GM and FS.....i only set InDM number in GM only but not in FS but i want to make it work in both.
How??
pawn Код:
CMD:kill( playerid, params[ ] )
{
if (InAFK[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "You are Now in AFK/BRB Mode! Try /back to use this cmd!");
return 1;
}
else
{
if (InDM[playerid] == 0)
{
SetPlayerHealth(playerid, 0);
GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~Wasted Life!",3000,3);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You cannot use this command while in DM. Use /leave to quit DM!");
}
}
return 1;
}
pawn Код:
CMD:healme( playerid, params[ ] )
{
if (InAFK[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "You are Now in AFK/BRB Mode! Try /back to use this cmd!");
return 1;
}
else
{
if(InDM[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "You cannot use this command while in DM. Use /leave to quit DM!");
}
else if(GetPlayerMoney(playerid) >= 1500)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid, 0xFFFF00FF, "You have just Bought Health & Armour with $1500!");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You Dont have Enough cash $1500 to buy Health & Armour!");
}
}
return 1;
}
How??