Questions
#6

Quote:
Originally Posted by Hayden_Bruin
Посмотреть сообщение
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 Код:
COMMAND:loc(playerid, params[])
{
    new otherplayerid,string[75],zone[MAX_ZONE_NAME],gName[25];
    if(sscanf(params, "u", otherplayerid)) return SendClientMessage(playerid, color,"use /loc [ID]");
    if(!IsPlayerConnected(otherplayerid)) return SendClientMessage(playerid, color, "not connect blah blah");
    else
    {
        GetPlayerName(otherplayerid, gName, 25);
        GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
        format(string, sizeof(string),"%s is located at %s",gName,zone);
        SendClientMessage(playerid, color,string);
    }
    return 1;
}
whipped that up just before so i'm not sure if it will work or not.
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;
}
Reply


Messages In This Thread
Questions - by Rokzlive - 11.01.2011, 04:08
Re: Questions - by wilko1995 - 11.01.2011, 08:21
Re: Questions - by Haydz - 11.01.2011, 08:52
Re: Questions - by Rokzlive - 11.01.2011, 18:42
Re: Questions - by _rAped - 11.01.2011, 18:45
Re: Questions - by HyperZ - 11.01.2011, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)