04.03.2014, 21:52
Onde coloco armas pra Mafiosos й em include ou GM que local .
OnPlayerSpawn
if(Variaveldosmafioso[playerid] == 1)
{
GivePlayerWeapon(playerid, IDarma, Balas);
}
Onde coloco armas pra Mafiosos |
case ClassMafia:
{
format(missiontext, sizeof(missiontext), Mafia_NoJobText);
SetPlayerColor(playerid, ColorClassMafia);
KillTimer(APlayerData[playerid][PlayerCheckTimer]);
APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Mafia_CheckMafiaLoads", 1000, true, "i", playerid);
// Give up to 12 weapons to the player
for (new i; i < 12; i++)
GivePlayerWeapon(playerid, APoliceWeapons[i], PoliceWeaponsAmmo);
}
case ClassMafia:
{
format(missiontext, sizeof(missiontext), Mafia_NoJobText);
SetPlayerColor(playerid, ColorClassMafia);
KillTimer(APlayerData[playerid][PlayerCheckTimer]);
APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Mafia_CheckMafiaLoads", 1000, true, "i", playerid);
GivePlayerWeapon(playerid, APoliceWeapons[playerid], PoliceWeaponsAmmo);
}
case ClassMafia:
{
format(missiontext, sizeof(missiontext), Mafia_NoJobText);
SetPlayerColor(playerid, ColorClassMafia);
KillTimer(APlayerData[playerid][PlayerCheckTimer]);
APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Mafia_CheckMafiaLoads", 1000, true, "i", playerid);
GivePlayerWeapon(playerid, IDarma, Muniзгo);
}