19.11.2011, 07:30
Well yea.. I want that if ANY PLAYER enter to area he gets the owner of the place.. which is faction leader..
btw.. i tried:
and still not working... when I enter its saying owner: 74
and i get no errors at all
btw.. i tried:
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~ %d", leadername);
GameTextForPlayer(playerid, tmp2, 5000, 1);
}
}
and i get no errors at all