Jump to content

Recommended Posts

Posted

Am facut si eu primul meu FS.L-as fi facut in dialog daca as fi stiut..dar na:( is mai incepator....:( este un fs simplu cu mai putin de 100 de linii..ce sa zic de el...cand scri /Barme iti apare in chat ce poti sa iti cumperi,cu cati bani,si cu ce comanda.Sunt 8 arme...si restu va las pe voi sa vedeti

Untitled.png.html

Download [download]http://www.solidfiles.com/d/16463f3047/[/download]

Astept comentarii :D

Posted

Nu pot sa spun ca este simplu ca nici eu nu stiam sa fac la inceput :) si stiu cum este, de la mine ai un plus  :))

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Posted

Destul de bine pentru primul tau FS :D

Era mult mai bine daca il faceai cu Dialog-uri :D

communitylogosml.png

94.23.120.101:7778

Posted

Omule te inteleg ca este primul dar unde verifica daca nu are banii necesari ?

Codul tau

if (strcmp("/xArma 1", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,36, 9999);
SendClientMessage(playerid,0x000099FF ,"Ai cumparat HS Rocket pentru 80000$ ");
GivePlayerMoney(playerid,-80000);

return 1;
}
Codul corect si fara buguri :)
if (strcmp("/xArma 1", cmdtext, true, 10) == 0)
{
    if(GetPlayerMoney(playerid) < 80000 )
         return SendClientMessage(playerid,-1,"{FF0000}Tu nu ai 80000");
    GivePlayerWeapon(playerid,36, 9999);
    SendClientMessage(playerid,0x000099FF ,"Ai cumparat HS Rocket pentru 80000$ ");
    GivePlayerMoney(playerid,-80000);
    return 1;
}

Si ca sa vezi cum este in dialoguri iti recomand sa te uiti la cel facut de mine ;).

Si nota: 3/5 e destul pentru primul tau fs :)

I'm back bitches.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.