command /dm - 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: command /dm (
/showthread.php?tid=64713)
command /dm -
sk1llz - 06.02.2009
i have created command /dm , she teleports me to dm zone , and when i die he teleports me back to spawn point
help me i need script if i write /dm i stay in DM zone , since i write /leavedm
P.S. sorry for my bad english =)
Re: command /dm -
Mikep - 06.02.2009
Quote:
Originally Posted by sk1llz
she teleports me to dm zone
|
Whos she?
Quote:
Originally Posted by sk1llz
he teleports me back to spawn point
|
Whos he?
He and she is when you are talking about people.
Re: command /dm -
sk1llz - 06.02.2009
Quote:
Originally Posted by Mikeshake
Quote:
Originally Posted by sk1llz
she teleports me to dm zone
|
Whos she?
Quote:
Originally Posted by sk1llz
he teleports me back to spawn point
|
Whos he?
He and she is when you are talking about people.
|
i have created command /dm , this command teleports me to dm zone , and when somebody kill me , i'm teleporting back to spawn point
help me i need script if i write /dm i stay in DM zone , since i write /leavedm
P.S. sorry for my bad english !!! (for idiots)
Re: command /dm -
Mikep - 06.02.2009
Use a variable.
When you go to dm:
When you exit DM:
OnPlayerSpawn:
pawn Код:
if(ImDm[playerid] == 1)
{
SetPlayerPos(playerid, X, Y, Z);
}
Re: command /dm -
sk1llz - 06.02.2009
Quote:
Originally Posted by Mikeshake
Use a variable.
When you go to dm:
When you exit DM:
OnPlayerSpawn:
pawn Код:
if(ImDm[playerid] == 1) { SetPlayerPos(playerid, X, Y, Z); }
|
where add this ?
Re: command /dm -
Mikep - 06.02.2009
I told you.
Re: command /dm -
sk1llz - 06.02.2009
Quote:
Originally Posted by Mikeshake
I told you.
|
pawn Код:
if (strcmp(cmdtext, "/dm", true)==0)
{
SetPlayerWorldBounds(playerid,9999999999.0,-99999999999.0,999999999999.0,-99999999999.0);
new rand = random(sizeof(gRandomDmSpawns));
GameTextForPlayer(playerid,"~w~ DeathMatch Zone",3,1);
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "*** %s teleported to the DeathMatch Zone ( command /dm ).", name);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, gRandomDmSpawns[rand][0],gRandomDmSpawns[rand][1],gRandomDmSpawns[rand][2]);
SetPlayerFacingAngle(playerid, gRandomDmSpawns[rand][3]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 32, 2000);
GivePlayerWeapon(playerid, 30, 1000);
GivePlayerWeapon(playerid, 24, 500);
return 1;
}
this is mine /dm command ;[
Re: command /dm -
Mikep - 06.02.2009
Anywhere..