Jump to content

script Výbavy


vopojtepek

Recommended Posts

Čawte všetci, chcel by som vám ukázať môj prvý FILTERSCRIPT Výbavy v. 1.0 ...

 

 

LIST VÝBAV

1. ARMOR /vesta

2. HEAL /ozivit

3. AK47 + 200 NÁBOJOV /ak47

4. M4 + 200 NÁBOJOV /m4

5. Wanted Level /wantedlevel 0-6

 

 

Prosím napíšte chyby a to čo sa vám nepáči ... Som nováčik

To by bolo všetko...

 

Sťiahneš tu http://pawno.cz/files/file/69-vybavy/

Link to comment
Share on other sites

Nemusis tam pouzivat formatovani stringu a zbytecne kvuli tomu deklarovat promenne. Napr.:

if (strcmp("/m4", cmdtext, true, 10) == 0)
{
 // Dodá m4 + 200 nábojov
 GivePlayerWeapon(playerid, 31, 200);
 SendClientMessage(playerid,0xFF0000FF,"Dostal si M4 !");
 return 1;
}

 

A s wantedlevelem se mrkni na tutorial jak udelat prikaz s parametry, aby jsi nemusel mit pro kazdy wanted level novy prikaz - napr. auta by se pak delaly hodne spatne :)

Link to comment
Share on other sites

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
×
×
  • Create New...