Can any help me?
#1

I wanted to ask that how can I create a script from where I can Set every Position to where I want to?
Reply
#2

SAMP WIKI(SetPlayerPos)

EXAMPLE
pawn Код:
SetPlayerPos(playerid,0.0,0.0,0);
Reply
#3

you are a beginner right ?!?!?!?!
no problem we will help ya up
Reply
#4

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
SAMP WIKI(SetPlayerPos)

EXAMPLE
pawn Код:
SetPlayerPos(playerid,0.0,0.0,0);
I already know that
Reply
#5

Quote:
Originally Posted by Medal Of Honor team
Посмотреть сообщение
I already know that
Then what exactly do you want ?
Reply
#6

I want a command that when an admin types /tplayer, all player will be teleported in a desired place
Reply
#7

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;
}
Reply
#8

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
Reply
#9

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!
Reply
#10

alright it's fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)