Deathmatch
#1

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 .
Reply
#2

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;
    }
Reply
#3

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 .
Reply
#4

Just change the players axies on SetPlayerPos with the axies of your mapped location ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)