Hi,everyone.I've write this,but when I pick these,nothing happen.
[pawn]public OnPickedUp(pickupid, playerid)
{
if ( pickupid == 287)
{
GivePlayerWeapon(playerid, 30, 500);
}
else if ( pickupid == 289)
{
GivePlayerWeapon(playerid, 32, 500);
}
else if ( pickupid == 275)
{
GivePlayerWeapon(playerid, 18, 500);
}
else if ( pickupid == 272)
{
GivePlayerWeapon(playerid, 15, 500);
}
else if ( pickupid == 279)
{
GivePlayerWeapon(playerid, 21, 500);
}
else if ( pickupid == 280)
{
GivePlayerWeapon(playerid, 26, 500);
}
else if ( pickupid == 286)
{
GivePlayerWeapon(playerid, 29, 500);
}
else if ( pickupid == 276)
{
GivePlayerWeapon(playerid, 27, 500);
}
else if ( pickupid == 282)
{
GivePlayerWeapon(playerid, 23, 500);
}
else if ( pickupid == 291)
{
GivePlayerWeapon(playerid, 13, 500);
}
else if ( pickupid == 268)
{
GivePlayerWeapon(playerid, 10, 500);
}
return 1;
}[/pawn]
Please Tell Me!