Jump to content

Recommended Posts

Posted

Punem asta Sus in Capul FileScriptului Sau GM-ului

new Locked[MAX_PLAYERS];
Aici Sunt Cateva Clase De Playeri
public OnGameModeInit()
{
    AddPlayerClass(221, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 0 - Nau Parola
    AddPlayerClass(212, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 1 - Nau Parola
    AddPlayerClass(199, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 2 -Are Parola
    return 1;
}
Aici se definesc Skinurile Private si alea care nus private
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
	case 0: Locked[playerid] = 0; //UNLOCKED
	case 1: Locked[playerid] = 0; //UNLOCKED
	case 2: Locked[playerid] = 1; //LOCKED
    }
    return 1;
}
Aici Este Cand Playeru A Loat SKinu Cu Parola Nu-l Va lasa Sa se Spawneze!
public OnPlayerRequestSpawn(playerid)
{
    if(Locked[playerid]) return 0;
    //Opreste Playeru Sa Fie Spawnat =D
    return 1;
}
Aici este cand Ai Ales Skin-ul tau si trebuie sai bagi parola!
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/unlock YOUR_PASS"))//Unde Este 'YOU_PASS' Pui Parola Care Vrei TU De Ex 'This Is My Skin'
    {
        Locked[playerid] = 0;
        SendClientMessage(playerid, -1, "Skins unlocked!");
    }
    return 1;
}

Tutorial By Zaster

560x95_FFFFFF_FF9900_000000_000000.png
Posted

Cand scrii parola la comanda aia, deblocheaza, corect, dar cand schimbi skinul pe altul se schimba pe blocat/deblocat, ca e setat acolo, vai de scriptingul tau. Nici n-ai testat.

Limba romana praf, scripting praf, esti 'zastru !

Posted

Praf tutorialu incearca sa descri corect in Limba romana , pentru ca ce ai scris tu acolo numai chinezi pot intelege 4/10

Daca nu ai inteles tu nu inseamna ca nimeni nu intelege

i_gerb.gif
  • 8 months later...
Posted

Imi pare rau dar nu merge..

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(6) : error 031: unknown directive

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(53) : error 017: undefined symbol "Locked"

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(53) : error 029: invalid expression, assumed zero

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(53) : warning 215: expression has no effect

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : error 014: invalid statement; not in switch

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : warning 215: expression has no effect

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : error 001: expected token: ";", but found ":"

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : error 029: invalid expression, assumed zero

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.

Posted

Imi pare rau dar nu merge..

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(6) : error 031: unknown directive

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(53) : error 017: undefined symbol "Locked"

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(53) : error 029: invalid expression, assumed zero

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(53) : warning 215: expression has no effect

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : error 014: invalid statement; not in switch

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : warning 215: expression has no effect

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : error 001: expected token: ";", but found ":"

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : error 029: invalid expression, assumed zero

C:\Users\RoBy41\Desktop\Crafting Table\Server 2\filterscripts\lockedskin.pwn(54) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.

Ti l-am facut eu filterscript.Pentru download click aici !

  • 4 weeks later...
  • 2 months later...
Posted

bYaLeX" post="135775" timestamp="1363605838"]

Poti reincarca filerscriptu pe alt  site de upload te rog ?

Linku nu merge, si chiar as vrea accest FS..

Dupa cum vezi asta e un tutorial si nu a mai fost postat in el din decembrie.

Posted

bYaLeX" post="135810" timestamp="1363625085"]

Stiu, dar as avea mare nevoie de el...

Se poate..?

Ce script visezi ma? Nu stii sa citesti?

Asta e tutorial! Te invata cum sa faci, nu til da mura in gura!

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.