14.08.2012, 21:05
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/coin", cmdtext, true, 10) == 0)
{
new str[150];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "{0780E3}%s flips the coin and lands it on((heads||tails))", str);
SendClientMessageToAll(-1,str);
return 1;
}
return 0;
}