SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 24/03/2009, 01:57 PM   #1
DorkAZoid
Big Clucker
 
Join Date: Mar 2009
Posts: 56
Reputation: 0
Default Help Wanted!

i have finally learned how to make checkpoints. All i need now is to know how to do this:
If a player enters a checkpoint, He must be told to do /getjob or /bemaid to get answers for example i enter the checkpoint the server says you must type /getjob or /bemaid in ann form. Now i do know how to make ann's but not this simple script (for u guys not for me!)
All i want is you to reply and post the code in it.
Hope i get some answers
Notes:
i forgot to say that i am making a role play server so please
~Ali~
DorkAZoid is offline  
Old 24/03/2009, 02:03 PM   #2
ghost_in_dark
Little Clucker
 
Join Date: Jul 2008
Posts: 22
Reputation: 0
Default Re: Help Wanted!

Code:
SendClientMessage(playerid,0xAA3333AA,"Type /getjob");
for example^^ if i understand it wrong pls tell me
ghost_in_dark is offline  
Old 24/03/2009, 02:15 PM   #3
DorkAZoid
Big Clucker
 
Join Date: Mar 2009
Posts: 56
Reputation: 0
Default Re: Help Wanted!

Quote:
Originally Posted by ghost_in_dark
Code:
SendClientMessage(playerid,0xAA3333AA,"Type /getjob");
for example^^ if i understand it wrong pls tell me
i didnt mean that. Well, yes i did but not that, i do know how to do that. What i am asking is When a player enters a checkpoint he has to type /getjob and messages come up saying you must do that and that whatever. I ment that.
Anyways thanx for the reply
~Ali~
DorkAZoid is offline  
Old 24/03/2009, 02:23 PM   #4
ghost_in_dark
Little Clucker
 
Join Date: Jul 2008
Posts: 22
Reputation: 0
Default Re: Help Wanted!

Code:
	AddStaticPickup(1239, 2, 1487.5673,-1422.6677,11.8883); //Lawyer Registration thats the checkpoint here a yellow i
Code:
				 if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1487.5673,-1422.6677,11.8883))
				{
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Lawyer, and get a 5 hour Contract.");
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job.");
				  GettingJob[playerid] = 2;
				}
thats for the text

Code:
			{
			  if(PlayerInfo[i][pJob] > 0) {}
			  else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3); }
			}
that should do it. i copied it out of my modified gfscript^^
ghost_in_dark is offline  
Old 24/03/2009, 02:45 PM   #5
DorkAZoid
Big Clucker
 
Join Date: Mar 2009
Posts: 56
Reputation: 0
Default Re: Help Wanted!

Thanx
just that one thing confuses me what if i write this:
Check Point Code:
Code:
 	SetPlayerCheckpoint(playerid, 1349.8916,-620.3745,109.1328, 3.0);
OnPlayerEnterCheckPoint (Or something like that or whatever)
Code:
 	public OnPlayerEnterCheckpoint(playerid)
{
	SendClientMessage(playerid, 0xFF9900AA, "Type /getjob to continue...");
	return 1;
	
	if (strcmp("/getjob", cmdtext, true, 10) == 0)
	{
	SendClientMessage(playerid, COLOR_WHITE, "Unable To Find A Job");
	return 1;
	}
}
OnPlayerCommandText (If Not In The Checkpoint)
Code:
	if (strcmp("/getjob", cmdtext, true, 10) == 0)
	{
	  SendClientMessage(playerid, 0xAFAFAFAA, "You are not in any job centre!");
		return 1;
	}
What will happen if i do that?
DorkAZoid is offline  
Old 24/03/2009, 03:00 PM   #6
ghost_in_dark
Little Clucker
 
Join Date: Jul 2008
Posts: 22
Reputation: 0
Default Re: Help Wanted!

sry i dont know if this works disgrace about me^^

but it should work the way i postet it
ghost_in_dark is offline  
Old 24/03/2009, 03:09 PM   #7
DorkAZoid
Big Clucker
 
Join Date: Mar 2009
Posts: 56
Reputation: 0
Default Re: Help Wanted!

Code:
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(118) : error 017: undefined symbol "PlayerToPoint"
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(120) : error 017: undefined symbol "COLOR_LIGHTBLUE"
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(121) : error 017: undefined symbol "COLOR_LIGHTBLUE"
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(122) : error 017: undefined symbol "COLOR_LIGHTBLUE"
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : error 017: undefined symbol "GettingJob"
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : warning 215: expression has no effect
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : error 001: expected token: ";", but found "]"
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : error 029: invalid expression, assumed zero
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.
This is what came up... And this is what i did in the script:
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
 	if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1487.5673,-1422.6677,11.8883))
	{
 		SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Lawyer, and get a 5 hour Contract.");
 		SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
 		SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job.");
		GettingJob[playerid] = 2;
		return 1;
	}
	
	{
 	if(PlayerInfo[i][pJob] > 0) {}
 	else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3); }
	}
	
	return 0;
}
Anybody know any suggestions
DorkAZoid is offline  
Old 24/03/2009, 06:38 PM   #8
DorkAZoid
Big Clucker
 
Join Date: Mar 2009
Posts: 56
Reputation: 0
Default Re: Help Wanted!

Heya did u guys know that i am serious about this thing?
~Ali~
DorkAZoid is offline  
 

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] WANTED ()ZzY Help Archive 0 20/02/2010 04:10 PM
Need For Pee : Most Wanted [RL&RP] Trooper[Y] Filterscripts 22 22/12/2009 03:23 AM
Wanted DaRkDeViiL Help Archive 4 11/03/2009 12:32 AM
Wanted? puchini Help Archive 4 07/03/2009 10:28 AM
/wanted list of persons with wanted [EDIT... problem solved] jesse237 Help Archive 8 24/02/2009 11:19 AM


All times are GMT. The time now is 03:46 PM.


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