19.11.2013, 14:41
pawn Код:
CMD:duel(playerid, params[])
{
new giveplayerid, playerb;
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_GREY, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
if(sscanf(params, "uu", giveplayerid, playerb)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /duel [playerid] [playerid]");
SetPlayerPos(giveplayerid, 1413.6411, -16.8837, 1000.9249);
SetPlayerVirtualWorld(giveplayerid, 1);
SetPlayerInterior(giveplayerid, 1);
PlayerInfo[giveplayerid][pInt] = 1;
PlayerInfo[giveplayerid][pVW] = 1;
SetPlayerPos(playerb, 1363.9401, -19.5196, 1000.9249);
SetPlayerVirtualWorld(playerb, 1);
SetPlayerInterior(playerb, 1);
PlayerInfo[playerb][pInt] = 1;
PlayerInfo[playerb][pVW] = 1;
GivePlayerValidWeapon(giveplayerid, 24, 99999);
GivePlayerValidWeapon(playerb, 24, 99999);
GivePlayerValidWeapon(giveplayerid, 25, 99999);
GivePlayerValidWeapon(playerb, 25, 99999);
return 1;
}