#4

[QUOTE=astanalol;3864817]
Quote:
Originally Posted by khRamin78
Посмотреть сообщение
as i know you should remov brackers

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
text[0] == '1')
    {
        if(
FirstWeaponText[playerid] == 1)
        {
           new 
Amount;
           if( 
sscanf text[1], "i",Amount))  return SendClientMessage(playerid,-1"[amount]");// amount he wants.
           
// This one
               
GivePlayerMoney(playerid,-Amount*100); // this makes 1 bullet for 100$
               
GivePlayerWeapon(playeridWEAPON_M4Amount);
           } 
// and this one
         
}
    } 
its working only when i write in chat 1 100
give me 100 ammo
i want making it when i'm write 1 in chat after that's write my amount ammo in chat
Bump!!
Reply


Messages In This Thread
Help - by astanalol - 06.04.2017, 20:20
Re: Help - by khRamin78 - 06.04.2017, 20:29
Re: Help - by astanalol - 06.04.2017, 20:53
Re: Help - by astanalol - 07.04.2017, 19:38
Re: Help - by XpDeviL - 07.04.2017, 21:01
Re: Help - by astanalol - 07.04.2017, 21:12
Re: Help - by XpDeviL - 07.04.2017, 21:16
Re: Help - by astanalol - 07.04.2017, 21:28

Forum Jump:


Users browsing this thread: 3 Guest(s)