26.08.2011, 13:24
Quote:
Code:
if(strcmp("/credits", cmdtext, true) == 0) { SendClientMessage(playerid, COLOR_RED, "List server credits"); SendClientMessage(playerid, COLOR_YELLOW, "Server owner: [TI]knackworst"); SendClientMessage(playerid, COLOR_YELLOW, "Server Hoster: Nightdarkness"); SendClientMessage(playerid, COLOR_YELLOW, "Server Scripters: knackworst, Libra and Nightdarkness"); SendClientMessage(playerid, COLOR_YELLOW, "Server Site Maker: Nightdarkness and Knackworst"); SendClientMessage(playerid, COLOR_YELLOW, "Server Site: http://www.stuntacular.smffy.com/"); SendClientMessage(playerid, COLOR_YELLOW, "Server Mappers: Sam, [SU]iHateLolypops, knackworst ,Libra, Isus and Nightdarkness"); SendClientMessage(playerid, COLOR_YELLOW, "Server IRC Chat Maker: Sam"); SendClientMessage(playerid, COLOR_YELLOW, "Server IRC Chat: www.tirc.tk"); SendClientMessage(playerid, COLOR_YELLOW, "____________________________________________"); SendClientMessage(playerid, COLOR_GREEN, "Without these people this server wouldn't have been successful. (scroll up for all the messages!)"); return 1; } put it in between: OnPlayerCommandText { 'put the code I sent u here' return 0; } Now all you have to do is change my lines and write stuff u want about the functions used: https://sampwiki.blast.hk/wiki/OnPlayerCommandText https://sampwiki.blast.hk/wiki/SendClientMessage |
Here is also a example ZCMD:
pawn Code:
CMD:credits(playerid, params[])
{
SendClientMessage(playerid,COLOR_WHITE, ".:: Credits ::.");
SendClientMessage(playerid,COLOR_WHITE, "This script is made by Kingunit.");
SendClientMessage(playerid,COLOR_WHITE, "He just bought a new dildo yesterday");
// Go on with those SendClientMessage's
return 1;
}