Island Life Prison Roleplay
Welcome back to ILRP! Please type in your username and password to 'login'.
Island Life Prison Roleplay
Welcome back to ILRP! Please type in your username and password to 'login'.
Island Life Prison Roleplay
Would you like to react to this message? Create an account in a few clicks or log in to continue.


WEBSITE: http://island-life.webs.com/
 
HomeLatest imagesSearchRegisterLog in
Welcome to Island Life Prison Roleplay! Our Server and Forums is under Major Construction, and will be for quit some time, but feel free to Go In Game, and check it out, as we script and Map new things everyday! Feel free to create topics on the forums, and claim your spot in DoC if you want to be a guard! Thanks and enjoy!

 

 Make Simple & Fast Commands

Go down 
AuthorMessage
AxelPetrov

AxelPetrov


Posts : 15
Join date : 2013-03-02
Age : 27
Location : United States

Make Simple & Fast Commands Empty
PostSubject: Make Simple & Fast Commands   Make Simple & Fast Commands Empty3/6/2013, 3:31 pm

the basic layout of a ZCMD command would look like this.
Code:
CMD:kill(playerid, params[]) {
   SetPlayerHealth(playerid, 0);
   return 1;
}

but what happens if you add some parameters to it?
This is what this simple kill command could look like. It could be so much more sick than that!
Code:

CMD:kill(playerid, params[]) {
   new string[128];
   SetPlayerHealth(playerid, 0);
   format(string, sizeof(string), "%s has '/killed' themself.", GetName(playerid));
   SendClientMessageToAll(string);
   return 1;
}

   


This is just the basic layout of a simple command. Thank you.
Back to top Go down
 
Make Simple & Fast Commands
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Island Life Prison Roleplay :: Tutorials :: Pawno Tutorials-
Jump to: