25.07.2013, 00:39
Hello Ladies and Gentlemen, I'll make a tutorial, If it's bad just say it in reply without -rep
Today, I'll Teach you how to make ZCMD Commands
Of course you must have ZCMD
Notice: Please read all the thread dont ignore it to see if its good or no
First: We'll make Kill Command:
It must seems Like that Because you use the ZCMD
Now how we make it gives low hp ?
We'll have to make that
Of course the 0 Reffers that when you type /kill it gives you 0 Hp
And Lets make the Heal command
Very very easy
Put that in another line
CMD:kill(playerid, params[])
And the 0, make it 100 So it gives you 100 HP
And it should seems like that
Now We'll make /information Command
Very east too
You'll make that
CMD:information(playerid, params[]) // Notice the CMD: Reffers to the ZCMD so you must use it if you have ZCMD
Now Lets make the Command
We'll make it with "SendClientMessage" It's very easy
Look at me
First we'll create that ofcourse
CMD:information(playerid, params[])
We have to do SendClientMessage.
So it must seems like that :
change it with any color you want
Notice : Dont forget the
Now we want to make a Radio Command
Easy too
First we must make that
Now we must do "PlayAudioStreamForPlayer(playerid,"Here the station");
So it must seems like that :
You use /playradio to play the radio
If you saw any problems let me edit it please
Today, I'll Teach you how to make ZCMD Commands
Of course you must have ZCMD
Notice: Please read all the thread dont ignore it to see if its good or no
First: We'll make Kill Command:
It must seems Like that Because you use the ZCMD
Code:
CMD:kill(playerid, params[])
We'll have to make that
Code:
CMD:kill(playerid, params[]) SetPlayerHealth(playerid,0);
And Lets make the Heal command
Very very easy
Put that in another line
CMD:kill(playerid, params[])
And the 0, make it 100 So it gives you 100 HP
And it should seems like that
Code:
CMD:kill(playerid, params[]) SetPlayerHealth(playerid,100); //This's 100, So it'll give you 100 hp<<
Very east too
You'll make that
CMD:information(playerid, params[]) // Notice the CMD: Reffers to the ZCMD so you must use it if you have ZCMD
Now Lets make the Command
We'll make it with "SendClientMessage" It's very easy
Look at me
First we'll create that ofcourse
CMD:information(playerid, params[])
We have to do SendClientMessage.
So it must seems like that :
Code:
CMD:information(playerid, params[]) SendClientMessage(playerid, 0xFFFFFF, "Here you type what do you want"); // 0xFFFFFF is the color, You can
Notice : Dont forget the
Code:
return 1; }
Easy too
First we must make that
Code:
CMD:playradio(playerid, params[]) // Because it's ZCMD
So it must seems like that :
Code:
CMD:playradio(playerid, params[]) // Because it's ZCMD PlayAudioStreamForPlayer(playerid,"Here the station"); // "Here the station" You put in it your Station IP
If you saw any problems let me edit it please