SetPlayerWorldBounds For Death Match -
waim - 30.07.2010
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.
Re: SetPlayerWorldBounds For Death Match -
PotH3Ad - 30.07.2010
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);
Re: SetPlayerWorldBounds For Death Match -
waim - 30.07.2010
yes because i want the players when they type /dm can't leave it
Re: SetPlayerWorldBounds For Death Match -
John_F - 30.07.2010
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.
Re: SetPlayerWorldBounds For Death Match -
waim - 30.07.2010
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
Re: SetPlayerWorldBounds For Death Match -
John_F - 30.07.2010
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
Re: SetPlayerWorldBounds For Death Match -
DragonBlaster50 - 30.07.2010
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.
Re: SetPlayerWorldBounds For Death Match -
waim - 30.07.2010
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
Re: SetPlayerWorldBounds For Death Match -
John_F - 30.07.2010
Post the code you have under
OnPlayerSpawn
I'll make it for you.
Re: SetPlayerWorldBounds For Death Match -
waim - 30.07.2010
I have only the GangZoneShow For Players ..