SetPlayerWorldBounds For Death Match
#1

Hello Guys I want use cmd to teleport in the area of the DeathMatch then the player can't exit this area .. I use like this but I got some errors

if(!strcmp(cmdtext,"/dm",true)) {
SendClientMessage(playerid, COLOR_ORANGE,"Welcome to DeathMatch .. Kill Or You'll Be Killed!");
SendClientMessage(playerid, COLOR_RED,"Type /exitdm To Exit The DeathMatch");
SetPlayerPos(playerid, 538.99822998047,-5008.1762695313,54.348358154297);
GameTextForPlayer(playerid, "DeathMatch By WaiM",1500,3);
GivePlayerWeapon(playerid, 24, 99999999);
GivePlayerWeapon(playerid, 26, 99999999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
line (93 SetPlayerWorldBounds(playerid, 1458,873, 1228,487, 2246,867, 2057,332);
return 1;
}


the errors :

.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#2

pawn Код:
if(!strcmp(cmdtext, "/dm", true))
{
    SendClientMessage(playerid, COLOR_ORANGE, "Welcome to DeathMatch .. Kill Or You'll Be Killed!");
    SendClientMessage(playerid, COLOR_RED, "Type /exitdm To Exit The DeathMatch");
    SetPlayerPos(playerid, 538.99822, -5008.17626, 54.34835);
    GameTextForPlayer(playerid, "DeathMatch By WaiM",1500,3);
    GivePlayerWeapon(playerid, 24, 99999999);
    GivePlayerWeapon(playerid, 26, 99999999);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerWorldBounds(playerid, 1458.873, 1228.487, 2246.867, 2057.332);
    return 1;
}
You added commas instead of decimals...
pawn Код:
SetPlayerWorldBounds(playerid, 1458,873, 1228,487, 2246,867, 2057,332);
Reply
#3

yes because i want the players when they type /dm can't leave it
Reply
#4

What? That makes no sense -.-"

You put COMMA's where there was supposed to be DECIMAL's
We know the point of SetPlayerWorldBounds but you need to change certain comma's that you put in, to decimals, as poth3ad stated.
Reply
#5

Thank you Sir you helped me ....... Can you tell me How I can make the players when they will be killed in the death match respawn in the dm becuase they respawn in their place
Reply
#6

Create a variable, name it w/e you want and set it to 0 when a player types /dm, set it to 1
under onplayerspawn put:
if(variablename = 1)
SetPlayerPos(playerid, 538.99822, -5008.17626, 54.34835);
GivePlayerWeapon(playerid, 24, 99999999);
GivePlayerWeapon(playerid, 26, 99999999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerWorldBounds(playerid, 1458.873, 1228.487, 2246.867, 2057.332);
then put
else
{
rest of OnPlayerSpawn data
}

Then under /exitdm set the variable to 0
Reply
#7

If you know how to save Locations.


SetPlayerPos(playerid, X, Y, Z);
Just /save on the place, then take out the X, Y and Z from it and there you are.
Reply
#8

yes Guys Their locations in LS .. I want them respawn in the area of dm when they will be killed

-----------

Jhon // I don't understand
Reply
#9

Post the code you have under
OnPlayerSpawn
I'll make it for you.
Reply
#10

I have only the GangZoneShow For Players ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)