hi guys,
first time sorry for this bad english ;)
Second time, I read plugins source and i whant do some change inside , just for give shootgun and rife a start of the game.
and would like ti know if what i change is enough or if i need change something else ?
Code:
GivePrimWeaponItem_l4d2()
{
for (new client = 1; client <= MaxClients; client++)
{
if (IsClientInGame(client) && GetClientTeam(client)==2)
{
if (GetConVarInt(cvarRandomPrimWeapon)==1)
{
switch(GetRandomInt(0, 6)) {
case 0: {
GiveItem(client, "pumpshotgun");
}
case 1: {
GiveItem(client, "autoshotgun");
}
case 2: {
GiveItem(client, "shotgun_spas");
}
case 3: {
GiveItem(client, "shotgun_chrome");
}
case 4: {
GiveItem(client, "rifle");
}
case 5: {
GiveItem(client, "rifle_ak47");
}
case 6: {
GiveItem(client, "rifle_desert");
}
}
}
else
{
if (GetConVarInt(cvarPrimWeapon)!=0) {
if (GetConVarInt(cvarPrimWeapon)==1) {
GiveItem(client, "pumpshotgun");
}
else if (GetConVarInt(cvarPrimWeapon)==2) {
GiveItem(client, "autoshotgun");
}
else if (GetConVarInt(cvarPrimWeapon)==3) {
GiveItem(client, "shotgun_spas");
}
else if (GetConVarInt(cvarPrimWeapon)==4) {
GiveItem(client, "shotgun_chrome");
}
else if (GetConVarInt(cvarPrimWeapon)==5) {
GiveItem(client, "rifle");
}
else if (GetConVarInt(cvarPrimWeapon)==6) {
GiveItem(client, "rifle_ak47");
}
else if (GetConVarInt(cvarPrimWeapon)==7) {
GiveItem(client, "rifle_desert");
}
}
}
}
}
}
it's the only change i do in this plugins
It s the first time i try something like this....