Island Life Prison Roleplay
Welcome back to ILRP! Please type in your username and password to 'login'.


WEBSITE: http://island-life.webs.com/
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog 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!

Share | 
 

 Make Simple & Fast Commands

Go down 
AuthorMessage
AxelPetrov

avatar

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

PostSubject: Make Simple & Fast Commands   3/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
View user profile
 
Make Simple & Fast Commands
Back to top 
Page 1 of 1
 Similar topics
-
» House of night for breakups,make ups and people falling in love (Started and closed))
» to make things short and sweet
» wolf pack rp make your own charter
» A simple camping spot [Closed] (Dated)
» Alchemy- to ban or not to ban?

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