18.09.2011, 17:30
you can do a check with what weapon the player enters into the vehicle
like under
Just choose one option and remove the other one
like under
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetPlayerWeapon(playerid) == 29)
{
//The players Enters the vehicle with MP5
}else{
/*You got 2 options [1] to ResetThePlayer Weapons
//[2] to givehim wep id (0) witch will se the player holding no weapon
Option [1]*/
ResetPlayerWeapons(playerid);
//Option[2]
GivePlayerWeapon(playerid, 0, 1);
}
return 1;
}
![Wink](images/smilies/wink.png)