06.09.2009, 22:13
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/maps", cmdtext, true))
{
if(HasUsedMaps[playerid] == 1)
{
HasUsedMaps[playerid] = 1;
TextDrawShowForPlayer(playerid, Maps);
SendClientMessage(playerid, 0xFFFFFF, "* To close this box, type '/maps' again.");
return 1;
}
else TextDrawHideForPlayer(playerid, Maps); HasUsedMaps[playerid] = 0;
}
return 0;
}
Код:
SERVER: Unkwnown Command.