03.02.2009, 14:07
Hey,
I want to make the cmd /afk [minutes].But with my code it says for exemple: "Player (ID:0) is now in AFK-Mode ! Minutes:z"
Here is my script:
I hope someone will find whatґs wrong...
I want to make the cmd /afk [minutes].But with my code it says for exemple: "Player (ID:0) is now in AFK-Mode ! Minutes:z"
Here is my script:
Код:
if(strcmp(cmd, "/afk", true) == 0) { new tmp[128]; tmp = strtok(cmdtext, idx); if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /afk [minutes]"); new name[MAX_PLAYER_NAME+1]; new string[128]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s (ID:%i) is now in AFK-Mode ! Minutes:%z.", name,playerid,strlen(tmp)); SendClientMessageToAll(0xDBD993FF,string); return 1; }