GM & FS
#1

this script is in my GM:

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;
}
And this in a FS:

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;
}
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??
Reply


Messages In This Thread
GM & FS - by saikumar - 10.06.2014, 09:45
Re : GM & FS - by Lacamora - 10.06.2014, 09:53
Re: GM & FS - by Laure - 10.06.2014, 10:00
Re: Re : GM & FS - by saikumar - 10.06.2014, 10:03
Re: GM & FS - by Rittik - 10.06.2014, 10:12
Re: GM & FS - by saikumar - 10.06.2014, 10:22
Re: GM & FS - by Laure - 10.06.2014, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)