Para alterar placa de veнculos:
SetVehicleNumberPlate (para alterar de todos faзa um loop de 0 а MAX_VEHICLES).
Para dar armas random:
Код:
stock GiveRandomWeaps(playerid)
{
new weapons_slot_00=random(2);
switch(weapons_slot_00)
{
case 0:GivePlayerWeapon(playerid, 0, 1);
case 1:GivePlayerWeapon(playerid, 1, 1);
}
// BENGALA FACA ETC
new weapons_slot_01=random(8);
switch(weapons_slot_01)
{
case 0:GivePlayerWeapon(playerid, 2, 1);
case 1:GivePlayerWeapon(playerid, 3, 1);
case 2:GivePlayerWeapon(playerid, 4, 1);
case 3:GivePlayerWeapon(playerid, 5, 1);
case 4:GivePlayerWeapon(playerid, 6, 1);
case 5:GivePlayerWeapon(playerid, 7, 1);
case 6:GivePlayerWeapon(playerid, 8, 1);
case 7:GivePlayerWeapon(playerid, 9, 1);
}
// EXPLOSIVOS
new weapons_slot_08=random(2);
switch(weapons_slot_08)
{
case 0:GivePlayerWeapon(playerid, 16, 15);
//case 2:GivePlayerWeapon(playerid, 18, 3); // MOLOTOV
case 1:GivePlayerWeapon(playerid, 39, 15);
}
// PISTOLAS
new weapons_slot_02=random(4);
switch(weapons_slot_02)
{
case 0:GivePlayerWeapon(playerid, 22, 220);
case 1:GivePlayerWeapon(playerid, 23, 220);
case 2:GivePlayerWeapon(playerid, 24, 220);
case 3:GivePlayerWeapon(playerid, 24, 220);
}
// METRALHAS
new weapons_slot_04=random(3);
switch(weapons_slot_04)
{
case 0:GivePlayerWeapon(playerid, 28, 2500);
case 1:GivePlayerWeapon(playerid, 29, 2500);
case 2:GivePlayerWeapon(playerid, 32, 2500);
}
// ASSALTO
new weapons_slot_05=random(2);
switch(weapons_slot_05)
{
case 0:GivePlayerWeapon(playerid, 30, 1000);
case 1:GivePlayerWeapon(playerid, 31, 1000);
}
// RIFLES
new weapons_slot_06=random(2);
switch(weapons_slot_06)
{
case 0:GivePlayerWeapon(playerid, 33, 100);
case 1:GivePlayerWeapon(playerid, 34, 100);
}
// GAS
new weapons_slot_09=random(2);
switch(weapons_slot_09)
{
case 0:GivePlayerWeapon(playerid, 41, 2000);
case 1:GivePlayerWeapon(playerid, 42, 2000);
}
// SHOTGUNS
new weapons_slot_03=random(3);
switch(weapons_slot_03)
{
case 0:GivePlayerWeapon(playerid, 25, 880);
case 1:GivePlayerWeapon(playerid, 26, 880);
case 2:GivePlayerWeapon(playerid, 27, 880);
}
return 1;
}
E testes de reaзгo й sу procurar que acha, achei esse:
https://sampforum.blast.hk/showthread.php?tid=150274
Mas й claro, para funcionar 100% vocк precisa alterar as funзхes de dar recompensa para as do seu gamemode.