18.11.2011, 23:28
pawn Code:
else if (PlayerToPoint(2.0, playerid,2421.4934,-1219.2512,25.5613)) //
{
new leadername[36];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pLeader] == 1)
{
GetPlayerName(i, leadername, sizeof(leadername));
}
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,1204.809936,-11.586799,1000.921875);
new tmp2[256];
format(tmp2, sizeof(tmp2), "~w~This place owned by:~g~ %s", leadername);
GameTextForPlayer(playerid, tmp2, 5000, 1);
}
}
pawn Code:
PlayerInfo[playerid][pLeader] = 1