14.11.2010, 19:58
(
Последний раз редактировалось Kitten; 24.11.2013 в 05:32.
)
Solved
else if(gTeam[playerid] == TEAM_ZOMBIE || TEAM_ZOMBIE2)
{
SendClientMessage(playerid,COLOR_GREEN,"ERROR: You are a zombie you can not get a random weapon");// You won't need this because they can't see it.
return 0;
}
stevens u fixed 1 of the checkpoints but for the random weapons one still zombies get random weapons
pawn Код:
|
if(gTeam[playerid] == TEAM_HUMAN || gTeam[playerid] == TEAM_HUMAN2)
{
if(checkpointid == RandomWeaponCP)
{
new randwep = random(9);
switch(randwep)
{
case 0: {GivePlayerWeapon(playerid,AK,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~AK47 ASSUALT RIFLE",6000,4);}
case 1: {GivePlayerWeapon(playerid,DEAGLE,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~DEAGLE PISTOL",6000,4);}
case 2: {GivePlayerWeapon(playerid,TEC9,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~TEC 9",6000,4);}
case 3: {GivePlayerWeapon(playerid,M4,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~M4 ASSUALT RIFLE",6000,4);}
case 4: {GivePlayerWeapon(playerid,SMG,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~SMG",6000,4);}
case 5: {GivePlayerWeapon(playerid,CHAINSAW,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~CHAINSAW",6000,4);}
case 6: {GivePlayerWeapon(playerid,NOWEAPON,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~UNARMED",6000,4);}
case 7: {GivePlayerWeapon(playerid,SMG2,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~ SMG 2",6000,4);}
}
}
}
else if(gTeam[playerid] == TEAM_ZOMBIE || gTeam[playerid] == TEAM_ZOMBIE2)
{
SendClientMessage(playerid,COLOR_GREEN,"ERROR: You are a zombie you can not get a random weapon");
}
if(gTeam[playerid] == TEAM_HUMAN || gTeam[playerid] == TEAM_HUMAN2)
{
if(checkpointid == BUYMENU)
{
ShowPlayerDialog(playerid,Dialog_Weaps,2,"Choose a Weapon","Uzi $2500\nAk47 $10000\nSawn-Off Shotgun $20000\nTec9 $3500\nSMG $20999\nCombat Shotgun $25000","Buy","Cancel");
}
}
else if(gTeam[playerid] == TEAM_ZOMBIE || gTeam[playerid] == TEAM_ZOMBIE2)
{
SendClientMessage(playerid,COLOR_GREEN,"ERROR: You are a zombie you can not buy a weapon");
}