Deathmatch - 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)
+--- Thread: Deathmatch (
/showthread.php?tid=534566)
Deathmatch -
DhO0m - 30.08.2014
Hello guys,
I have scripted a map for y deathmatch for example the map code is:
pawn Код:
CreateObject(19128, 2833.78784, 1519.12378, 9.83560, 0.00000, 0.00000, 0.00000);
How i make this dm by typing /dildo player spawns here:
pawn Код:
2833.78784, 1519.12378, 9.83560
And the players who typed that cmd will spawn with a dildo .
Re: Deathmatch -
PMH - 30.08.2014
With zcmd:
pawn Код:
CMD:dildo(playerid, params[])
{
SetPlayerPos(playerid, 2833.78784, 1519.12378, 9.83560);
SendClientMessage(playerid, "YOu have been tp'ed to didlo map");
GivePlayerWeapon(playerid, 11, 1);
return 1;
}
or just paste these codes under OnPLayercommandtext
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2833.78784, 1519.12378, 9.83560);
SendClientMessage(playerid, "YOu have been tp'ed to didlo map");
GivePlayerWeapon(playerid, 11, 1);
return 1;
}
Re: Deathmatch -
DhO0m - 30.08.2014
Quote:
Originally Posted by PMH
With zcmd:
pawn Код:
CMD:dildo(playerid, params[]) { SetPlayerPos(playerid, 2833.78784, 1519.12378, 9.83560); SendClientMessage(playerid, "YOu have been tp'ed to didlo map"); GivePlayerWeapon(playerid, 11, 1); return 1; }
or just paste these codes under OnPLayercommandtext
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 2833.78784, 1519.12378, 9.83560); SendClientMessage(playerid, "YOu have been tp'ed to didlo map"); GivePlayerWeapon(playerid, 11, 1); return 1; }
|
Then what about the map ? i designed one map for it can you shows an example with my map example .
Re: Deathmatch -
Fred1993 - 30.08.2014
Just change the players axies on SetPlayerPos with the axies of your mapped location ..