09.06.2015, 22:16
pawn Код:
CMD:duelo(playerid,params[])
{
new Other, Arma[32];
if(sscanf(params,"is[32]",Other,Arma))
{
SendClientMessage(playerid, -1, "Armas: Eagle, Shotgun");
return 1;
}
if(strcmp(Arma, "eagle", true) == 0)
{
if(IsPlayerConnected(Other) && !IsPlayerNPC(Other))
{
// Funзгo de iniciar o duelo ou do outro cara aceitar.
}
}
else if(strcmp(Arma, "shotgun", true) == 0)
{
if(IsPlayerConnected(Other) && !IsPlayerNPC(Other))
{
// Funзгo de iniciar o duelo ou do outro cara aceitar.
}
}
return 1;
}