RemoveBuildingForPlayer
#1

Hello I have been trying to make a filterscript with
Код:
RemoveBuildingForPlayer(playerid, 762, 1023.5938, -2050.6875, 16.0859, 0.25);
RemoveBuildingForPlayer(playerid, 762, 1011.8594, -2043.5000, 16.0859, 0.25);
but I was wondering can this be done or must it be in a game mode? and if it can be done how could I add it to a filterscript I tried on player connect but I dont think thats right how could I go about this?
Reply
#2

No. It was suppose to be place in OnPlayerConnect.
OnGameModeInit/OnFilterScriptInit has no parameters. That's why RemoveBuildingForPlayer
isn't suitable for that callback. OnPlayerConnect has playerid callback so it was suitable for it.

The function can be only used in a callback that has playerid parameters.
Reply
#3

well how can I add this to ppc_trucking game mode?
Reply
#4

add it OnPlayerConnect.
It was that easy. So what's the problem?

You're asking if it can be putted OnGameModeInit. my answer is no.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)