SA-MP Forums Archive
"MINI" Help nedded - 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: "MINI" Help nedded (/showthread.php?tid=301002)



"MINI" Help nedded - Gooday - 02.12.2011

Hy guys!

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/chief186", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 275);
        GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Chief.");
        return 1;
    }
    if(strcmp(cmdtext, "/dchief1861", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 279);
        GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Deputy Chief.");
        return 1;
    }
    if(strcmp(cmdtext, "/fire1211", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 278);
        GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Fireman.");
        return 1;
    }
    if(strcmp(cmdtext, "/fire1212", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 277);
        GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Fireman.");
        return 1;
    }
    if(strcmp(cmdtext, "/fire1213", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 278);
        GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Fireman.");
        return 1;
    }
    if(strcmp(cmdtext, "/fire1214", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 277);
        GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Fireman.");
        return 1;
    }
    if(strcmp(cmdtext, "/med18612", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 274);
        GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as Paramedic.");
        return 1;
    }
    if(strcmp(cmdtext, "/med18613", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 276);
        GivePlayerWeapon(playerid, COLOR_GOLD,42,1000);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as Paramedic");
        return 1;
    }
    if(strcmp(cmdtext, "/capt186", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 281);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCSD Capitan.");
        return 1;
    }
    if(strcmp(cmdtext, "/off1861", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 283);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCSD Officer.");
        return 1;
    }
    if(strcmp(cmdtext, "/off1862", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 288);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCSD Officer.");
        return 1;
    }
    if(strcmp(cmdtext, "/off1863", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 281);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCSD Officer.");
        return 1;
    }
    if(strcmp(cmdtext, "/off1864", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 288);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCSD Officer.");
        return 1;
    }
    if(strcmp(cmdtext, "/sher186", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 282);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCSD Sheriff.");
        return 1;
    }
    if(strcmp(cmdtext, "/dsher1861", true) == 0) {
        // Set the player's skin to ID 277, which is a fireman.
        SetPlayerSkin(playerid, 283);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCSD Deputy Sheriff.");
        return 1;
   }
How i can give to the FD skins when they "log as firemans" a fire extinguer and a chainsaw?

and for the cops how i can give a desert eagle shotgun baton and a spray can?
Thanks +rep.


Re: "MINI" Help nedded - Pinguinn - 02.12.2011

GivePlayerWeapon


Re: "MINI" Help nedded - Joshb93 - 02.12.2011

Hey, you might want to remove the "COLOR_GOLD" from GivePlayerWeapon, as you cannot do that.