06.05.2011, 19:39
Here study this:
Sorry i can't explain you how to make this,i can give you CMD only because i didn't made this.
(I understand it i can make CMD easy i just have to deal with some virus and i don't know how to explain it very well because i'm newbie scripter).
Good luck.
Код:
if (strcmp("/afk", cmdtext, true, 10) == 0) { GameTextForPlayer(playerid, "~g~You are now ~r~Away From Keyboard",5000,3); TogglePlayerControllable(playerid,0); SetPlayerHealth(playerid,1000000); new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "You are now Away From keyboard %s(/afk)", pname); SendClientMessageToAll(COLOR_RED, string); return 1; } if (strcmp("/back", cmdtext, true, 10) == 0) { GameTextForPlayer(playerid, "~g~You are now ~r~back on keyboard",5000,3); TogglePlayerControllable(playerid,1); SetPlayerHealth(playerid,100); new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s You are now back on keyboard(/back)", pname); SendClientMessageToAll(COLOR_RED, string); return 1; }
(I understand it i can make CMD easy i just have to deal with some virus and i don't know how to explain it very well because i'm newbie scripter).
Good luck.