Jump to content

Cum Sati Pui Parola La Un Skin


zaster

Recommended Posts

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
Link to comment
Share on other sites

  • 8 months later...

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.

Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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