05.01.2011, 08:06
Hello there,
I am trying to change my server map (as I have 3 right now), after every 6 minutes. Basically I don't want to spawn the objects while changing the maps but Create all objects at first and then change the player position after every six minutes. I have two teams (made from this tutorial : https://sampwiki.blast.hk/wiki/PAWN_tutorial) and I want to set different locations for both of them after changing the map. Like when the map changes TeamA should spawn at x1,y1,z1 and TeamB should spawn at x2,y2,z2.
I tried to set a timer but it didn't help.
For example :
When I try to compile the above code, it generates the error : undefined symbol 'playerid'.
And when I add 'playerid' in arguments like
Nothing happens.
Is there any way to solve the problem?
I am trying to change my server map (as I have 3 right now), after every 6 minutes. Basically I don't want to spawn the objects while changing the maps but Create all objects at first and then change the player position after every six minutes. I have two teams (made from this tutorial : https://sampwiki.blast.hk/wiki/PAWN_tutorial) and I want to set different locations for both of them after changing the map. Like when the map changes TeamA should spawn at x1,y1,z1 and TeamB should spawn at x2,y2,z2.
I tried to set a timer but it didn't help.
For example :
Код:
SetTimer - above and forward changemap1(); public changemap1() { if (gTeam[playerid] == TEAM_GROVE) { SetPlayerPos(playerid,XYZ); } else if (gTeam[playerid] == TEAM_BALLA) { SetPlayerPos(playerid,XYZ); } }
And when I add 'playerid' in arguments like
Код:
forward changemap1(playerid) public changemap1(playerid)
Is there any way to solve the problem?