Help Please
#1

Hello, How I can do this:


Function:
/ekk [ID] [Reason]

%s kicked %s from the event for %s.
SetPlayerVirtualWorld(playerid, 0);
Reply
#2

Do you want:

A new spot for kick? So when he/she get's kicked they'll be set in a SetPlayerPos ?
Reply
#3

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.
Reply
#4

so...
just check if the player is in virtual world 9 - GetPlayerVirtualWorld
and then change the player virtual world to 0 with - SetPlayerVirtualWorld
Reply
#5

I WANT A KICK COMMAND

/ekk [ID] [Reason]
%s kicked %s from the event for %s
SetPlayervirtualWorld(playerid, 0)
Reply
#6

pawn Код:
CMD:ekk(playerid, params[])
{
new str[128], ID;

if(sscanf, "us[128]", ID, str) return SendClientMessage(playerid, red, "Usage: ekk [playerid] [reason]");
if(GetPlayerVirtualWorld(playerid) == 9)
    {
          SetPlayerPos(ID, x,y,z);
          SetPlayerVirtualWorld(ID, 0);
    }
else
    {
          SendClientMessage(ID, red, "The player you specified is not in Virtual World 9!");
    }
return 1;
}
not tested
may work or may not work..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)