18.10.2014, 15:20
Tenta isto:
O comando funciona? O que aparece no console?
Se nгo funcionar, atualize as suas includes!
pawn Код:
CMD:duel(playerid,params[])
{
new dueloid, aname[MAX_PLAYER_NAME];
if(sscanf(params,"d",dueloid)) return SendClientMessage(playerid,Cinza,"use: /duel <1-2>");
if(dueloid > 2 || dueloid < 1) return SendClientMessage(playerid,Cinza,"use: /duel <1-2>");
GetPlayerName(playerid, aname, sizeof(aname));
switch(dueloid)
{
case 1:
{
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 33, 9999);
printf("%s escolheu duel 1", aname);
}
case 2:
{
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 25, 9999);
printf("%s escolheu duel 2", aname);
}
}
return 1;
}
Se nгo funcionar, atualize as suas includes!