SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 09/08/2010, 05:29 PM   #311
gtg2808
Little Clucker
 
Join Date: Jun 2010
Posts: 17
Reputation: 0
Default Re: [REL] IRC Plugin v1.3.6

how can i do this?
!givecash <id> // i just wanna to give some cash to the id which i type.
use scanfs or strlen. i just need to know how! :O
gtg2808 is offline   Reply With Quote
Old 09/08/2010, 06:16 PM   #312
rbN.
Banned
 
Join Date: Jan 2010
Location: fissa
Posts: 1,079
Reputation: 289
Default Re: [REL] IRC Plugin v1.3.6

How could you do like, if you type in something, it also shows for the server. So example: I say on IRC: Hello. This shows up on server: RobinOwnz: Hello.

How(btw without admin functions, so normal people can use too)
rbN. is offline   Reply With Quote
Old 09/08/2010, 09:42 PM   #313
michael2572
Big Clucker
 
Join Date: Jan 2007
Posts: 49
Reputation: 20
Default Re: [REL] IRC Plugin v1.3.6

Quote:
Originally Posted by gtg2808 View Post
how can i do this?
!givecash <id> // i just wanna to give some cash to the id which i type.
use scanfs or strlen. i just need to know how! :O
Quote:
Originally Posted by RobinOwnz View Post
How could you do like, if you type in something, it also shows for the server. So example: I say on IRC: Hello. This shows up on server: RobinOwnz: Hello.

How(btw without admin functions, so normal people can use too)
These are very simple tasks that you could pretty easily code if you do a little of the homework first.

GTG, you need to learn about using sscanf, then understand what happens in IRC_OnUserSay.

Robin, this is easier. Use IRC_OnUserSay, then send a client message. It's really easy, just give it a try and you'll figure it out.
__________________
super fun derby since 2009 - cnbderby.net:7777
michael2572 is offline   Reply With Quote
Old 10/08/2010, 09:32 AM   #314
rbN.
Banned
 
Join Date: Jan 2010
Location: fissa
Posts: 1,079
Reputation: 289
Default Re: [REL] IRC Plugin v1.3.6

Quote:
Originally Posted by michael2572 View Post
These are very simple tasks that you could pretty easily code if you do a little of the homework first.

GTG, you need to learn about using sscanf, then understand what happens in IRC_OnUserSay.

Robin, this is easier. Use IRC_OnUserSay, then send a client message. It's really easy, just give it a try and you'll figure it out.
Oh well, ty.. I didn't tested the IRC plugin and stuff yet, but I watched it a bit so lol ..
rbN. is offline   Reply With Quote
Old 10/08/2010, 11:38 AM   #315
gtg2808
Little Clucker
 
Join Date: Jun 2010
Posts: 17
Reputation: 0
Default Re: [REL] IRC Plugin v1.3.6

i know about scanf. lol. k, i got a bug but not an error.
i tried !heal <id>
need a help!
Code:
IRCCMD:heal(botid, channel[], user[], params[], playerid)
{
		new iD,main[256],amain[256],name[MAX_PLAYER_NAME];
		if (sscanf(params, "u", iD)) IRC_GroupSay(botid, channel, "You did not put in a msg");
		else if (IRC_IsOp(botid, channel, user)== 0) return IRC_GroupSay(botid, channel, "You are not a channel admin");
		else if (iD == INVALID_PLAYER_ID) IRC_GroupSay(botid, channel,"~ Invaild Player ID");
		else
			 {

				GetPlayerName(playerid, name, sizeof(name));
				format(main,sizeof(main),"%s [#gtg2808] as 4restored %s 's health",user,name);
				format(amain,sizeof(amain),"%s [#gtg2808] as restored Your health",user);
				IRC_GroupSay(botid, channel, main);
				SendPlayerMessageToPlayer(playerid,0xFB0000FF,amain);
				PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
				SetPlayerHealth(playerid,100);
	}
		return 1;
}
bug:-
and ingame , i didn't got health - 100
Code:
<~gtg2808> !heal 0
<G-1> gtg2808 [#gtg2808] as 4restored  's health

Last edited by gtg2808; 10/08/2010 at 06:10 PM.
gtg2808 is offline   Reply With Quote
Old 10/08/2010, 03:59 PM   #316
michael2572
Big Clucker
 
Join Date: Jan 2007
Posts: 49
Reputation: 20
Default Re: [REL] IRC Plugin v1.3.6

Whose health are you setting? Read your function.
__________________
super fun derby since 2009 - cnbderby.net:7777
michael2572 is offline   Reply With Quote
Old 10/08/2010, 06:12 PM   #317
gtg2808
Little Clucker
 
Join Date: Jun 2010
Posts: 17
Reputation: 0
Default Re: [REL] IRC Plugin v1.3.6

!heal <id> like !heal 0
so, id:0 will be healed.
can u understand?
gtg2808 is offline   Reply With Quote
Old 13/08/2010, 01:04 AM   #318
CJ101
High-roller
 
CJ101's Avatar
 
Join Date: Jan 2008
Location: RevolutionX
Posts: 1,758
Reputation: 162
Default Re: [REL] IRC Plugin v1.3.6

This happened today, cant get my bots to join since:

Quote:
[21:05:13] CJ101's RevolutionX DM/Stunt/Race/Fun v3
[21:05:13] Number of vehicle models: 0
[21:05:19] 05Auto-Load: Server Autoloaded The Default Vehicles. (88 Total)
[21:05:38] *** IRC Plugin: Could not connect to irc.tl:6667 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
[21:05:38] IRC Bot 1 Disconnected.
__________________
I have left SA-MP. Thanks for a great ten years.
CJ101 is offline   Reply With Quote
Old 13/08/2010, 02:15 AM   #319
gtg2808
Little Clucker
 
Join Date: Jun 2010
Posts: 17
Reputation: 0
Default Re: [REL] IRC Plugin v1.3.6

For me too.
[03:38:37] *** IRC Plugin: Could not connect to irc.ffsnetwork.com:8067 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
gtg2808 is offline   Reply With Quote
Old 13/08/2010, 05:52 AM   #320
michael2572
Big Clucker
 
Join Date: Jan 2007
Posts: 49
Reputation: 20
Default Re: [REL] IRC Plugin v1.3.6

Quote:
Originally Posted by gtg2808 View Post
!heal <id> like !heal 0
so, id:0 will be healed.
can u understand?
Pay attention to this line -

SetPlayerHealth(playerid,100);

Also

Is anyone currently using or trying to use this plugin with SSL?
__________________
super fun derby since 2009 - cnbderby.net:7777
michael2572 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[help][plugin] Can't load mysql plugin mariomako Help Archive 8 16/07/2011 02:37 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 02:32 PM


All times are GMT. The time now is 12:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.