[GameMode] [GM] Power Deathmatch
#2

pawn Код:
if(strcmp(cmd, "/afk", true) == 0) { // AFK Feature by Jonty
    SetPlayerColor(playerid, COLOR_GREY);
    TogglePlayerControllable(playerid, 0);
    TogglePlayerSpectating(playerid, 1);
    SendClientMessage(playerid, COLOR_RED, "You are now AFK. Type /back to return.");                                                                                                                                                                                                                                                /*@t@h@i@s@ @f@e@a@t@u@r@e@ @c@o@d@e@d@ @b@y@ @j@o@n@t@y@ */
    return 1;
    }
    if(strcmp(cmd, "/back", true) == 0) { // Back Feature by Jonty
    TogglePlayerControllable(playerid, 1);
    TogglePlayerSpectating(playerid, 0);
    SetPlayerPos(playerid,-1347.6686,499.8203,18.2344);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerColor(playerid, COLOR_WHITE);
    SendClientMessage(playerid, COLOR_RED, "Welcome back!");                                                                                                                                                                                                                                                 /*@t@h@i@s@ @f@e@a@t@u@r@e@ @c@o@d@e@d@ @b@y@ @j@o@n@t@y@ */
    return 1;
Feel free to use this /afk and /back system as long as you don't remove the credits. You'll have to fix the SetPlayerPos in the /back to suit your own needs.
Reply


Messages In This Thread
[GM] Power Deathmatch - by NitroSWA - 11.11.2009, 18:05
Re: [GM] Power Deathmatch - by Jontay - 11.11.2009, 20:54
Re: [GM] Power Deathmatch - by NitroSWA - 12.11.2009, 16:47
Re: [GM] Power Deathmatch - by BurningSWA - 13.11.2009, 08:57
Re: [GM] Power Deathmatch - by EPiC_LOG - 13.01.2010, 16:21
Re: [GM] Power Deathmatch - by Hailine - 13.01.2010, 18:19
Re: [GM] Power Deathmatch - by ViruZZzZ_ChiLLL - 14.01.2010, 10:40
Re: [GM] Power Deathmatch - by vyper - 14.01.2010, 13:59
Re: [GM] Power Deathmatch - by NitroSWA - 15.01.2010, 10:57
Re: [GM] Power Deathmatch - by Deat_Itself - 15.01.2010, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)