02.02.2011, 15:35
pawn Код:
public OnPlayerCommandText(playerid, text[])
{
if(!strcmp(text, "10-20", true))
{
new Float:x, Float:y, Float:z, string[100], name[MAX_PLAYER_NAME];
GetPlayerPos(playerid, x, y, z);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s's position: %f, %f, %f", name, x, y, z);
SendClientMessageToAll(0xFFFFFFAA, string);
return 0;
}
return 1;
}