Commands problem
#2

just show us the commands , not the whole gm

nvm.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/heal", cmdtext, true, 5) == 0)
        {
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            SendClientMessage(playerid, 0x0FFDD349, "pm>>Your health and armor have been fully restored.");
        }
        if (strcmp("/kill", cmdtext, true, 5) == 0)
        {
            SetPlayerHealth(playerid, 0);
        }
        if (strcmp("/rweps", cmdtext, true, 6) == 0)
        {
            ResetPlayerWeapons(playerid);
            SendClientMessage(playerid, 0x0FFDD349, "pm>>Your weapons have been reset.Use /weps for new ones.");
        }
        if (strcmp("/cmds", cmdtext, true, 5) == 0)
        {
            SendClientMessage(playerid, 0x0FFDD349, "pm>>/rweps, /kill, /heal, /rules, /weps, /teles");
        }
        if (strcmp("/rules", cmdtext, true, 6) == 0)
        {
            SendClientMessage(playerid, 0x0FFDD349, "pm>>x-x-x-x-Server rules-x-x-x-x");
            SendClientMessage(playerid, 0x0FFDD349, "pm>>Do not insult other players and staff members.");
            SendClientMessage(playerid, 0x0FFDD349, "pm>>Do not use hacks or tools that give you unfair advantage over others.");
            SendClientMessage(playerid, 0x0FFDD349, "pm>>Do not advertise other servers.");
            SendClientMessage(playerid, 0x0FFDD349, "pm>>Not following these rules may lead you to being punished by the administrators");
            return 1;
        }
        return 1;
}
Reply


Messages In This Thread
Commands problem - by 7echn0 - 10.08.2012, 23:58
Re: Commands problem - by Devilxz97 - 11.08.2012, 00:04
Re: Commands problem - by CaRa - 11.08.2012, 00:06
Re: Commands problem - by Ranama - 11.08.2012, 00:09
Re: Commands problem - by CaRa - 11.08.2012, 00:10
Re: Commands problem - by Devilxz97 - 11.08.2012, 00:15
Re: Commands problem - by 7echn0 - 11.08.2012, 00:35
Re: Commands problem - by CaRa - 11.08.2012, 00:38
Re: Commands problem - by FalconX - 11.08.2012, 00:57
Re: Commands problem - by 7echn0 - 12.08.2012, 02:21

Forum Jump:


Users browsing this thread: 3 Guest(s)