Help with command
#3

Код:
new,
BattleJoin = 999,
BattleX[MAX_PLAYERS],
BattleY[MAX_PLAYERS],
BattleZ[MAX_PLAYERS];

CMD:startbattle(playerid, params[])
{
BattleJoin = playerid;
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x, y, z);
BattleX[playerid] = x;
BattleY[playerid] = y;
BattleZ[playerid] = z;
}

CMD:joinbattle(playerid, params[])
{
if(BattleJoin == 999) return 0;
new giveplayerid = BattleJoin;
SetPlayerPos(playerid, BattleX[giveplayerid], BattleY[giveplayerid], BattleZ[giveplayerid];
GivePlayerWeapon(playerid, 4, 99999);
}

Untested.
Reply


Messages In This Thread
Help with command - by TheLastShadow - 08.03.2014, 21:19
Re: Help with command - by Dipto - 08.03.2014, 21:32
Re: Help with command - by Abagail - 08.03.2014, 21:48
Re: Help with command - by Dipto - 08.03.2014, 21:59
Re: Help with command - by TheLastShadow - 09.03.2014, 10:25
Re: Help with command - by TheLastShadow - 09.03.2014, 15:33

Forum Jump:


Users browsing this thread: 2 Guest(s)