[Help]: Duel System.
#1

Hello!

I want to make a duel system and I have a /duel command, but I don't know how to make /accept command...

Duel Command:

PHP код:
CMD:duel(playeridparams[])
{
    new 
targetid;
    new 
weaponid;
    new 
ammo;
    new 
string[300];
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playeridCOLOR_RED"ERROR: This Player is Not Connected!");
    if(
sscanf(params"uii"targetidweaponidammo)) return SendClientMessage(playeridCOLOR_ORANGE"Usage: /duel [playerid] [weaponid] [amount]");
    
format(stringsizeof(string), "[DUEL]: %s Want a Duel With You. Type /accept, To Start The Duel."GetName(playerid));
    
SendClientMessage(targetidCOLOR_LIGHTREDstring);
    
SetPlayerPos(playerid, -1401.9368,1266.0421,1039.8672);
    
SetPlayerPos(targetid, -1397.5286,1225.9540,1039.8741);
    
ResetPlayerWeapons(targetid);
    
ResetPlayerWeapons(playerid);
    
GivePlayerWeapon(playeridweaponidammo);
    
GivePlayerWeapon(targetidweaponidammo);
    
GameTextForPlayer(targetid"~b~GO GO GO!",3000,3);
    
GameTextForPlayer(playerid"~b~GO GO GO!",3000,3);
    return 
1;

Thank you for your help
Reply


Messages In This Thread
[Help]: Duel System. - by Areax - 03.05.2013, 08:08
Re: [Help]: Duel System. - by Areax - 03.05.2013, 09:32
AW: [Help]: Duel System. - by HurtLocker - 03.05.2013, 09:40
Re: [Help]: Duel System. - by ToiletDuck - 03.05.2013, 09:53
Re: AW: [Help]: Duel System. - by Areax - 03.05.2013, 10:03
Re: [Help]: Duel System. - by Areax - 03.05.2013, 10:10
Re: [Help]: Duel System. - by ToiletDuck - 03.05.2013, 10:15
Re: [Help]: Duel System. - by Areax - 03.05.2013, 10:16
Re: [Help]: Duel System. - by ToiletDuck - 03.05.2013, 10:18
Re: [Help]: Duel System. - by Areax - 03.05.2013, 10:19
Re: [Help]: Duel System. - by lilt074life - 03.05.2013, 11:50

Forum Jump:


Users browsing this thread: 2 Guest(s)