24.05.2009, 12:43
hi all,
I've a little problem with a deathmatch area.
Im trying to make a deathmatch area, where people cant leave the area by using setworldbounds
My command:
if(strcmp(cmdtext, "/sniper", true) == 0)
{
new rand = random(sizeof(DMSniperSpawns));
new Playername[30], str[256];
GetPlayerName(playerid, Playername, 30);
format(str, 256, "%s has gone to the SniperDeathmatch type /sniper to join!!!", Playername);
SendClientMessageToAll(COLOR_RED, str);
SetPlayerPos(playerid, DMSniperSpawns[rand][0], DMSniperSpawns[rand][1], DMSniperSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 34, 25);
SetPlayerHealth(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
SetPlayerInterior(playerid, 0);
SetPlayerColor(playerid,COLOR_BLANK);
SetPlayerWorldBounds(playerid, 2872.427, 2751.377, 1040.031, 850.4955);
return 1;
Problem: If people join this area they will fly all over las venturas and not stay in the specific area, i used x-treme san andreas ultimate mapper for make a worldbound.
p.s. : Trying to put the line under
public SetPlayerRandomSpawn(playerid)
{
dont work either
I hope someone can help me
I've a little problem with a deathmatch area.
Im trying to make a deathmatch area, where people cant leave the area by using setworldbounds
My command:
if(strcmp(cmdtext, "/sniper", true) == 0)
{
new rand = random(sizeof(DMSniperSpawns));
new Playername[30], str[256];
GetPlayerName(playerid, Playername, 30);
format(str, 256, "%s has gone to the SniperDeathmatch type /sniper to join!!!", Playername);
SendClientMessageToAll(COLOR_RED, str);
SetPlayerPos(playerid, DMSniperSpawns[rand][0], DMSniperSpawns[rand][1], DMSniperSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 34, 25);
SetPlayerHealth(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
SetPlayerInterior(playerid, 0);
SetPlayerColor(playerid,COLOR_BLANK);
SetPlayerWorldBounds(playerid, 2872.427, 2751.377, 1040.031, 850.4955);
return 1;
Problem: If people join this area they will fly all over las venturas and not stay in the specific area, i used x-treme san andreas ultimate mapper for make a worldbound.
p.s. : Trying to put the line under
public SetPlayerRandomSpawn(playerid)
{
dont work either
I hope someone can help me