Posts: 564
Threads: 149
Joined: Jan 2011
Reputation:
0
Hello, How I can do this:
Function:
/ekk [ID] [Reason]
%s kicked %s from the event for %s.
SetPlayerVirtualWorld(playerid, 0);
Posts: 364
Threads: 26
Joined: Sep 2010
Reputation:
0
Do you want:
A new spot for kick? So when he/she get's kicked they'll be set in a SetPlayerPos ?
Posts: 564
Threads: 149
Joined: Jan 2011
Reputation:
0
This is what I basically want:
When I do /startevent the player teleports to a specified position, and to VirtualWorld9, So I want a /kick command with reason and everything, which allow to kick players just if they are in the virtualworld9
Example:
Alex has started an event. (Currently in VW9).
Alex has typed /ekk 23 Shooting with bazooka.
Alex has left the enent.
Alex has typed /ekk 23 Noob!
Error: You must be on VirtualWorld9 to kick players.
Posts: 308
Threads: 109
Joined: Oct 2010
Reputation:
0
so...
just check if the player is in virtual world 9 - GetPlayerVirtualWorld
and then change the player virtual world to 0 with - SetPlayerVirtualWorld
Posts: 564
Threads: 149
Joined: Jan 2011
Reputation:
0
I WANT A KICK COMMAND
/ekk [ID] [Reason]
%s kicked %s from the event for %s
SetPlayervirtualWorld(playerid, 0)