..:: /credits command::.. ??
#4

Quote:
Originally Posted by knackworst
View Post
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;
   }
here's an example
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
Didn't you ripped that outta gamemode?
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;
}
Reply


Messages In This Thread
..:: /credits command::.. ?? - by Ammo - 26.08.2011, 13:16
Re: ..:: /credits command::.. ?? - by knackworst - 26.08.2011, 13:19
Re: ..:: /credits command::.. ?? - by Amel_PAtomAXx - 26.08.2011, 13:22
Re: ..:: /credits command::.. ?? - by Kingunit - 26.08.2011, 13:24
Re: ..:: /credits command::.. ?? - by knackworst - 26.08.2011, 13:25
Re: ..:: /credits command::.. ?? - by PhoenixB - 26.08.2011, 13:26
Re: ..:: /credits command::.. ?? - by Shouty - 25.06.2012, 19:51
Re: ..:: /credits command::.. ?? - by Kindred - 25.06.2012, 19:53
Re: ..:: /credits command::.. ?? - by AlonGlenn - 27.11.2016, 01:38

Forum Jump:


Users browsing this thread: 2 Guest(s)