Hello There, Guest! Login or Register


Useful Functions/Snippets/Commands
#22
Code:
    if(strcmp(cmd, "/Freeze", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
        new tmp[30];
        tmp = strtok(cmdtext, idx);
        new otherplayer = strval(tmp);
        if(IsPlayerConnected(otherplayer))
        {
            SendClientMessage(otherplayer, 0xFFFF00AA, "You have been Frozen!, Go read the (./)Rules");
            TogglePlayerControllable(otherplayer,0);
        }
        }
        return 1;
    }
meh
Reply


Messages In This Thread
Useful Functions/Snippets/Commands - by Jay - 04-21-2008, 03:19 PM
Re: Useful Functions/Snippets/Commands - by Jay - 04-21-2008, 07:42 PM
Re: Useful Functions/Snippets/Commands - by Smoke - 04-23-2008, 06:50 AM
Re: Useful Functions/Snippets/Commands - by Jay - 04-23-2008, 04:54 PM
Re: Useful Functions/Snippets/Commands - by Smoke - 04-24-2008, 10:18 AM
Re: Useful Functions/Snippets/Commands - by Jay - 04-29-2008, 01:03 PM
Re: Useful Functions/Snippets/Commands - by Jay - 05-08-2008, 11:54 AM
Re: Useful Functions/Snippets/Commands - by Greyfox - 06-10-2008, 10:55 AM
Re: Useful Functions/Snippets/Commands - by Jay - 02-02-2009, 10:17 PM