26.02.2013, 20:13
(
Последний раз редактировалось Patrick; 27.02.2013 в 14:20.
)
Hello guys my new problem is. i configured now how to show the right picture on Selection. but everytime i click the picture. it doesn't give me the weapon that i chosen. can anyone help me? code show's below
OnPlayerModelSelectionEx
Commands
OnPlayerModelSelectionEx
pawn Код:
#define VWEAPONS 1
public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
{
if(extraid == VWEAPONS)
{
if(response)
{
SendClientMessage(playerid, COLOR_GREEN,"VIP Weapon Recieved");
GivePlayerWeapon(playerid, modelid, 250);
}
else SendClientMessage(playerid, COLOR_RED_ERROR,"Canceled weapon selection");
return 1;
}
return 1;
}
pawn Код:
CMD:vweapons(playerid)
{
new weapons[12];
weapons[0] = 333;
weapons[1] = 335;
weapons[2] = 336;
weapons[3] = 346;
weapons[4] = 347;
weapons[5] = 348;
weapons[6] = 349;
weapons[7] = 350;
weapons[8] = 351;
weapons[9] = 352;
weapons[10] = 353;
weapons[11] = 355;
ShowModelSelectionMenuEx(playerid, weapons, 12, "Select Weapon", VWEAPONS, 16.0, 0.0, -55.0);
return 1;
}