Help Wanted!
#1

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~
Reply
#2

Код:
SendClientMessage(playerid,0xAA3333AA,"Type /getjob");
for example^^ if i understand it wrong pls tell me
Reply
#3

Quote:
Originally Posted by ghost_in_dark
Код:
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~
Reply
#4

Код:
	AddStaticPickup(1239, 2, 1487.5673,-1422.6677,11.8883); //Lawyer Registration thats the checkpoint here a yellow i
Код:
				 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

Код:
			{
			  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^^
Reply
#5

Thanx
just that one thing confuses me what if i write this:
Check Point Code:
Код:
 	SetPlayerCheckpoint(playerid, 1349.8916,-620.3745,109.1328, 3.0);
OnPlayerEnterCheckPoint (Or something like that or whatever)
Код:
 	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)
Код:
	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?
Reply
#6

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

but it should work the way i postet it
Reply
#7

Код:
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 © 1997-2006, ITB CompuPhase


8 Errors.
This is what came up... And this is what i did in the script:
Код:
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
Reply
#8

Heya did u guys know that i am serious about this thing?
~Ali~
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)