05.03.2011, 11:42
(
Последний раз редактировалось bestr32; 05.03.2011 в 12:32.
)
xD.
find public OnPlayerCommandText
And do this: (pss: you can just copy paste it) :P
At the top of the script:
#define lightblue 0x00FFFFFF
#define green 0x00FF00FF
find public OnPlayerCommandText
And do this: (pss: you can just copy paste it) :P
Код:
if(strcmp(cmdtext, "/afk", true) == 0) { TogglePlayerControllable(playerid, 0); new string [128]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(string,sizeof string,"%s is afk now (Away From Keyboard).",pName); SendClientMessageToAll(green, string); return 1; }
Код:
if(strcmp(cmdtext, "/back", true) == 0) { new string [128]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(string,sizeof string,"%s is back now (Back To KeyBoard).",pName); SendClientMessageToAll(lightblue, string); TogglePlayerControllable(playerid, 1); return 1; }
#define lightblue 0x00FFFFFF
#define green 0x00FF00FF