RemoveBuildingForPlayer
#1

Hello,
I had these lines in OnPlayerConnect, and it didn't work. So where do I put it?

Thanks,
stormchaser206.
Reply
#2

Add them under OnGameModeInit.
Reply
#3

Theres no playerid parameter for OnGameModeInIt
Reply
#4

Oh add it OnPlayerSpawn
Reply
#5

Quote:
Originally Posted by Captain_Mani
Посмотреть сообщение
Oh add it OnPlayerSpawn
Doesn't work.
Reply
#6

OnPlayerConnect:
RemoveBuildingForPlayer(playerid, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius);
Reply
#7

Quote:
Originally Posted by andrew2695
Посмотреть сообщение
OnPlayerConnect:
RemoveBuildingForPlayer(playerid, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius);
Quote:

I had these lines in OnPlayerConnect, and it didn't work.

See?
Reply
#8

Maybe an idea to put it into a filterscript or something
it worked for me so.
Reply
#9

Usage under OnGameModeInIt:
pawn Код:
for(newi=0;i<=MAX_PLAYERS;i++)
{
    RemoveBuildingForPlayer(i, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius); // Deletes it for every player
}
Under OnPlayerConnect:
pawn Код:
RemoveBuildingForPlayer(playerid, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius);
Reply
#10

But it worked for me under OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)