Help Please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Please (
/showthread.php?tid=276366)
Help Please -
Alex_Obando - 13.08.2011
Hello, How I can do this:
Function:
/ekk [ID] [Reason]
%s kicked %s from the event for %s.
SetPlayerVirtualWorld(playerid, 0);
Re: Help Please -
Meinstad - 13.08.2011
Do you want:
A new spot for kick? So when he/she get's kicked they'll be set in a SetPlayerPos ?
Respuesta: Help Please -
Alex_Obando - 13.08.2011
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.
Re: Help Please -
omer5198 - 13.08.2011
so...
just check if the player is in virtual world 9 - GetPlayerVirtualWorld
and then change the player virtual world to 0 with - SetPlayerVirtualWorld
Respuesta: Help Please -
Alex_Obando - 13.08.2011
I WANT A KICK COMMAND
/ekk [ID] [Reason]
%s kicked %s from the event for %s
SetPlayervirtualWorld(playerid, 0)
Re: Help Please -
emokidx - 13.08.2011
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..