17.08.2009, 15:17
Код:
if(strcmp(cmd, "/mддravanus", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "KASUTUS: /mддravanus [vanus]"); return 1; } new playa; new age; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); age = strval(tmp); if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { PlayerInfo[playa][pAge] = age; GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "SERVER: Sa oled nььd %d vanus!", age); SendClientMessage(COLOR_YELLOW,string,1); } } } return 1; }
Mддravanus = Setage (Estonian - English)
How do it, like:
/mддravanus 18
not /mддravanus [id] 18
(id/playername) need to remove,
Thanks