SA-MP Forums Archive
again plzz help plz - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: again plzz help plz (/showthread.php?tid=337895)



again plzz help plz - newbie scripter - 28.04.2012

plz help me in scripting i also saw that scripting tutorials and etc.. can someone teach me


Re: again plzz help plz - Mimic - 28.04.2012

To be quite honest, download a basic GM in the Gamemode section of the forums - examine and look through all the code and just attempt to learn yourself, no one is going to put in the time to teach someone they don't know how to script, when coding in PAWN (for a beginner) isn't exactly easy to learn. I'd suggest you keep reading through the scripting tutorials, download a GM and just try and learn yourself, that's how I done it. Maybe that's how quite a few other scripters learned too, by therselves.


Re: again plzz help plz - newbie scripter - 28.04.2012

i did that like LVDM i edited that only thing is that i need to learn how to make commands


Re: again plzz help plz - newbie scripter - 28.04.2012

anyway thnx


Re: again plzz help plz - [Dk]RoCk - 28.04.2012

Yea No One is Going To Teach You ,
Yu need to do By Your Own


Re: again plzz help plz - newbie scripter - 28.04.2012

can anyone tell me how to make commands no need to teach?


Re: again plzz help plz - newbienoob - 28.04.2012

Use Zcmd. It's very simple and easy to use. Perfect for beginner scripters.


Re: again plzz help plz - newbie scripter - 28.04.2012

can u tell how to use it like
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new vehicleid;
    dcmd(heal ,4, cmdtext);
    return 0;
}

dcmd_heal(playerid, params[])
{
    #pragma unused params
    SetPlayerHealth(playerid,100.0);
    return 1;
}



Re: again plzz help plz - Niko_boy - 28.04.2012

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
can u tell how to use it like
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new vehicleid;
    dcmd(heal ,4, cmdtext);
    return 0;
}

dcmd_heal(playerid, params[])
{
    #pragma unused params
    SetPlayerHealth(playerid,100.0);
    return 1;
}
dcmd(heal,4,cmdtext)
here heal is the command
4 is the length of Digits i.e. command length if u do a command like ban its length will be 3
add that part in OnPlayerCommandText

now.
// here dcmd_heal is the function for command player id = player how use command , params are optional parametes
which are used in commands like /ban pPlayerID it will ban another Player i.e. pPlayerID entered in command

dcmd_heal(playerid , params[])
{
// command code goes here
}


Re: again plzz help plz - Mark™ - 28.04.2012

Quote:
Originally Posted by Niko_boy
Посмотреть сообщение
dcmd(heal,4,cmdtext)
here heal is the command
4 is the length of Digits i.e. command length if u do a command like ban its length will be 3
add that part in OnPlayerCommandText

now.
// here dcmd_heal is the function for command player id = player how use command , params are optional parametes
which are used in commands like /ban pPlayerID it will ban another Player i.e. pPlayerID entered in command

dcmd_heal(playerid , params[])
{
// command code goes here
}
It's called string length, not length of the digits.