Код:
if(strcmp(cmdtext,"/DuelSawn", true, 3))
{
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "%s Has Started a Sawn Off Shotgun Duel type /joinSawnoffDuel to join", str, cmdtext[4]);
SendClientMessageToAll(Blue, str);
GivePlayerWeapon(playerid, 26, 99999);
SetPlayerPos(playerid, 1547.1478, -1675.3250, 13.9536);
return 1;
)
if(strcmp(cmdtext,"/DuelUzi", true, 3))
{
new str[128];
GetPlayerName(playerid, str, sizeof,(str));
format(str, sizeof(str), "%s Has Started a Uzi Duel Type /JoinUziDuel to join", str, cmdtext[4]);
SendClientMessageToAll(Blue, str);
GivePlayerWeapon(playerid, 28, 99999);
SetPlayerPos(playerid, 1547.1478, -1675.3250, 13.9536);
return 1;
}
if(strcmp(cmdtext,"/JoinSawnoffDuel", true, 3))
{
new str[128];
GetPlayerName(playerid, str, sizeof,(str));
format(str, sizeof(str), "%s Has Joined a player In A Sawn Off Shotgun Duel", str, cmdtext[4]);
SendClientMessageToAll(Blue, str);
GivePlayerWeapon(playerid, 26, 99999);
SetPlayerPos(playerid, 1547.1478, -1675.3250, 13.9536);
return 1;
}
if(strcmp(cmdtext,"/joinUziDuel", true, 3))
{
new str[128];
GetPlayerName(playerid, str, sizeof,(str));
format(str, sizeof(str), "%s Has Joined a player In A Uzi Duel", str, cmdtext[4]);
SendClientMessageToAll(Blue, str);
GivePlayerWeapon(playerid, 28, 99999);
SetPlayerPos(playerid, 1547.1478, -1675.3250, 13.9536);
return 1;
}