SA-MP Forums Archive
Gunpack System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gunpack System (/showthread.php?tid=453779)



Gunpack System - efrim123 - 26.07.2013

can someone make me a gunpack system cmds that i want for it:
/gunpack1 only avalible for 300 score
/gunpack2 only avalible for 500 score
/gunpack3 only for regular players

and i need a regular player system command for adding a player for regualr player:
/addrp id
/removerp id

Thank you.


Re: Gunpack System - efrim123 - 26.07.2013

if you cant make me a gunpack system and rp system can you show me how i can make it ?>


Re: Gunpack System - Steezy_ - 26.07.2013

Score
Guns
For rp you should save a pvar and save it on a .ini


Re: Gunpack System - efrim123 - 26.07.2013

Can you write me what I need to run in pawno
ANd in the ini


Respuesta: Gunpack System - RafaelZam - 27.07.2013

pawn Код:
CMD:gunpack(playerid, params[])
{
    if(GetPlayerScore(playerid) >= 0) // regular player
    {
     GivePlayerWeapon(playerid, 22, 100); // you may change the weaps here
     GivePlayerWeapon(playerid, 25, 100);
     GivePlayerWeapon(playerid, 29, 100);
    }

 else if(GetPlayerScore(playerid) >= 300) // 300 score
   {
     GivePlayerWeapon(playerid, 24, 100);
     GivePlayerWeapon(playerid, 27, 100);
     GivePlayerWeapon(playerid, 32, 100);
   }
  else if(GetPlayerScore(playerid) >= 500) // 500 score
   {
     GivePlayerWeapon(playerid, 31, 130);
     GivePlayerWeapon(playerid, 34, 100);
     GivePlayerWeapon(playerid, 28, 230);
   }

return 1;
}
this use this
tell me if works !


Re: Gunpack System - efrim123 - 27.07.2013

Ty it works but i need rp system to


Re: Gunpack System - efrim123 - 27.07.2013

And if someone can please give me a good Cops And Robbers Gamemode so i can edit it please
if yes ty very much


Re: Gunpack System - efrim123 - 27.07.2013

and it shows me this problem with the gunpack

C:\Users\Efriam\Desktop\Cops And Robbers\filterscripts\Gunpack.pwn(224) : warning 217: loose indentation
C:\Users\Efriam\Desktop\Cops And Robbers\filterscripts\Gunpack.pwn(237) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

i am doing a filter script and it dosent works -.-


Re: Gunpack System - efrim123 - 27.07.2013

And if you can show me how to make a command in pawno like show me what i need to edit and stuff


Re: Gunpack System - Necip - 27.07.2013

This will solve the warnings:
pawn Код:
CMD:gunpack(playerid, params[])
{
    if(GetPlayerScore(playerid) >= 0) // regular player
    {
        GivePlayerWeapon(playerid, 22, 100); // you may change the weaps here
        GivePlayerWeapon(playerid, 25, 100);
        GivePlayerWeapon(playerid, 29, 100);
    }
    else if(GetPlayerScore(playerid) >= 300) // 300 score
    {
        GivePlayerWeapon(playerid, 24, 100);
        GivePlayerWeapon(playerid, 27, 100);
        GivePlayerWeapon(playerid, 32, 100);
    }
    else if(GetPlayerScore(playerid) >= 500) // 500 score
    {
        GivePlayerWeapon(playerid, 31, 130);
        GivePlayerWeapon(playerid, 34, 100);
        GivePlayerWeapon(playerid, 28, 230);
    }
    return 1;
}
Also, what do you mean with "rp system"?