SA-MP Forums Archive
[REQUEST]Need a Simple Script[REP++++] - 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: [REQUEST]Need a Simple Script[REP++++] (/showthread.php?tid=540323)



[REQUEST]Need a Simple Script[REP++++] - Adarsh007 - 04.10.2014

<Removed>


Re: [REQUEST]Need a Simple Script[REP++++] - ThunderX - 04.10.2014

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/gunpack1", cmdtext, true, 10) == 0)
    {
    GameTextForPlayer(playerid,"any comment you want when they use cmd!!",5000,2);
    GivePlayerWeapon(playerid,34,400);
    GivePlayerWeapon(playerid,35,400);
    GivePlayerWeapon(playerid,36,400);
    GivePlayerWeapon(playerid,37,400);
    GivePlayerWeapon(playerid,16,400);
    GivePlayerWeapon(playerid,17,400);
    GivePlayerWeapon(playerid,18,400);
    GivePlayerWeapon(playerid,3,400);
    GivePlayerWeapon(playerid,4,400);
    GivePlayerWeapon(playerid,5,400);
    GivePlayerWeapon(playerid,7,400);
    GivePlayerWeapon(playerid,8,400);
        return 1;
    }
    return 0;
if you need like score to unlock (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 500

pawn Код:
if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 500)
    {
    SendClientMessage(playerid, COLOR_RED,"Your unlock gunpack - 1");
    }
    if (GetPlayerScore(playerid) >= 100)



Re : Re: [REQUEST]Need a Simple Script[REP++++] - Adarsh007 - 04.10.2014

Quote:
Originally Posted by ThunderX
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/gunpack1", cmdtext, true, 10) == 0)
    {
    GameTextForPlayer(playerid,"any comment you want when they use cmd!!",5000,2);
    GivePlayerWeapon(playerid,34,400);
    GivePlayerWeapon(playerid,35,400);
    GivePlayerWeapon(playerid,36,400);
    GivePlayerWeapon(playerid,37,400);
    GivePlayerWeapon(playerid,16,400);
    GivePlayerWeapon(playerid,17,400);
    GivePlayerWeapon(playerid,18,400);
    GivePlayerWeapon(playerid,3,400);
    GivePlayerWeapon(playerid,4,400);
    GivePlayerWeapon(playerid,5,400);
    GivePlayerWeapon(playerid,7,400);
    GivePlayerWeapon(playerid,8,400);
        return 1;
    }
    return 0;
if you need like score to unlock (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 500

pawn Код:
if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 500)
    {
    SendClientMessage(playerid, COLOR_RED,"Your unlock gunpack - 1");
    }
    if (GetPlayerScore(playerid) >= 100)
You Really Not tell me How to Create the Pickup that only Regular Player Can pick it up and the remaining /gunpack system I Already Finded a Way Just waiting for the Grant Regular Status by ADmin now I Really not need it ! thanks Anyway :/