Aperte Y e Mude ...
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
- {
- if(newkeys == KEY_YES && IsPlayerInAnyVehicle(playerid))
- {
- new TrocarArma[7][2];
- for(new i=2; i<7; i++)
- {
- GetPlayerWeaponData(playerid,i,TrocarArma[i][0],TrocarArma[i][1]);
- }
- new ProcederTroca = 2 + random(5);
- SetPlayerArmedWeapon(playerid,TrocarArma[ProcederTroca][0]);
- }
- return 1;
- }