11.01.2011, 18:50
Quote:
2, just create the textdraw like you normally would(one for each player), then loop through all the players every 3 seconds and update the textdraw. or, you could just update the textdraw when a player withdraws/deposits/taxes etc, would be much more efficent.
four. pawn Код:
i used this include also, so check if it's the one you use. https://sampforum.blast.hk/showthread.php?tid=27598 |
pawn Код:
COMMAND:loc(playerid, params[])
{
new ID, string[128], zone[MAX_ZONE_NAME];
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, 0xFFFF00AA,"use /loc [ID]");
else if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xFFFF00AA, "not connect blah blah");
else
{
new gName[MAX_PLAYER_NAME];
GetPlayerName(ID, gName, sizeof(gName));
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
format(string, sizeof(string),"%s is located at %s", gName, zone);
SendClientMessage(playerid, 0xFFFF00AA,string);
}
return 1;
}