giving gun problem
#4

Enjoy! I just got done making your command. (:
Код:
CMD:sellgun(playerid, params[])
{
    new otherid, weaponName;
    new string[64], PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    SendClientMessage(playerid, COLOR_WHITE, "--------------------------------[Guns You Can Sell]--------------------------------");
    SendClientMessage(playerid, COLOR_WHITE, "Level 1: Bat(A-200) | Cane(A-200) | Flowers(A-50) | Katana(A-200) | SDPistol(A-250)");
    SendClientMessage(playerid, COLOR_WHITE, "--------------------------------[Guns You Can Sell]--------------------------------");
    else if(otherid == INVALID_PLAYER_ID) return SendClientMessage(playerid, CHAT_COLOR_RED, "SERVER: Uknown Player ID.");
    else
    {
	if(strcmp(params, "Bat", true, 3))
	{
	     GivePlayerWeapon(otherid, 5, 1);
             SendClientMessage(playerid, CHAT_COLOR_LIGHTBLUE, "Bat works.");
        }
        else if(strcmp(params, "Cane", true, 4))
        {
             GivePlayerWeapon(otherid, 15, 1);
             SendClientMessage(playerid, CHAT_COLOR_LIGHTBLUE, "Cane works.");
        }
        else if(strcmp(params, "Flowers", true, 7))
        {
             GivePlayerWeapon(otherid, 14, 1);
             SendClientMessage(playerid, CHAT_COLOR_LIGHTBLUE, "Flowers works.");
        }
        else if(strcmp(params, "Katana", true, 6))
   	{
             GivePlayerWeapon(otherid, 8, 1);
             SendClientMessage(playerid, CHAT_COLOR_LIGHTBLUE, "Katana works.");
       	}
        else if(strcmp(params, "SDPistol", true, 8))
        {
             GivePlayerWeapon(otherid, 23, 10000);
             SendClientMessage(playerid, CHAT_COLOR_LIGHTBLUE, "SDPistol works.");
     	}
    }
    return 1;
}
Reply


Messages In This Thread
giving gun problem - by Jermi - 12.08.2012, 02:30
Re: giving gun problem - by Richard Steinheimer - 12.08.2012, 02:44
Re: giving gun problem - by Jermi - 12.08.2012, 02:46
Re: giving gun problem - by Richard Steinheimer - 12.08.2012, 03:08
Re: giving gun problem - by Jermi - 12.08.2012, 03:13
Re: giving gun problem - by Jermi - 12.08.2012, 03:15
Re: giving gun problem - by [DM]Kane - 12.08.2012, 03:22
Re: giving gun problem - by Jermi - 12.08.2012, 03:23
Re: giving gun problem - by [DM]Kane - 12.08.2012, 03:24
Re: giving gun problem - by Jermi - 12.08.2012, 03:25

Forum Jump:


Users browsing this thread: 2 Guest(s)