Can any help me? - 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: Can any help me? (
/showthread.php?tid=223460)
Can any help me? -
Medal Of Honor team - 09.02.2011
I wanted to ask that how can I create a script from where I can Set every Position to where I want to?
Re: Can any help me? -
park4bmx - 09.02.2011
SAMP WIKI(SetPlayerPos)
EXAMPLE
pawn Код:
SetPlayerPos(playerid,0.0,0.0,0);
Re: Can any help me? -
MBX97 - 09.02.2011
you are a beginner right
?!?!?!?!
no problem we will help ya up
Re: Can any help me? -
Medal Of Honor team - 09.02.2011
Quote:
Originally Posted by park4bmx
|
I already know that
Re: Can any help me? -
park4bmx - 09.02.2011
Quote:
Originally Posted by Medal Of Honor team
I already know that
|
Then what exactly do you want ?
Re: Can any help me? -
Medal Of Honor team - 09.02.2011
I want a command that when an admin types /tplayer, all player will be teleported in a desired place
Re: Can any help me? -
park4bmx - 09.02.2011
ohh ok next time explain it more do something like this
pawn Код:
if(strcmp(cmd,"/tplayer",true)==0){
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
SetPlayerPos(i,0,0,0);// put your coordinateshere
}
return 1;
}
Re: Can any help me? -
Medal Of Honor team - 11.02.2011
still not cleared. I know that already. I want something different like /tplayer [x] [y] [z]. A command like that, which teleport's all the player's in a specific location In Game
Re: Can any help me? -
xRyder - 11.02.2011
ZCMD + sscanf + loop = your command.
Something like:
pawn Код:
COMMAND:tplayer(playerid, params[])
{
new Float:posX,Float:posY,Float:posZ;
if(!sscanf(params, "fff",posX,posY,posZ))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerPos(i, posX,posY,posZ);
}
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /tplayer [X][Y][Z]");
return 1;
}
NOT TESTED!
Re: Can any help me? -
Medal Of Honor team - 11.02.2011
alright it's fixed