Posts: 32
Threads: 4
Joined: Aug 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 .
Posts: 32
Threads: 4
Joined: Aug 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 .
Posts: 71
Threads: 2
Joined: May 2014
Reputation:
0
Just change the players axies on SetPlayerPos with the axies of your mapped location ..