17.08.2009, 15:28
pawn Код:
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 age;
tmp = strtok(cmdtext, idx);
age = strval(tmp);
if(IsPlayerConnected(playa))
{
PlayerInfo[playerid][pAge] = age;
format(string, 256, "SERVER: Sa oled nььd %d vanus!", age);
SendClientMessage(COLOR_YELLOW,string,1);
}
}
}
return 1;
}