A little question
#1

This is just a quick question,i just need someone to double check this and tell me if they can see anything wrong with it.

The problem i had was if a player in a car went into the checkpoint the diaolog would show for him/her,but it would also show for the passenger too,so i think this should work,but im not sure,well here it is

Код:
public OnPlayerEnterInvisibleCP(playerid,icpid){
	new State=GetPlayerState(playerid);
	if(CP1 == 1) {
		if(IsPlayerInICp(playerid, CP1) && State!=PLAYER_STATE_DRIVER) {
			    ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Select", "Cancel");
                PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);}}
    return 1;}
As i said it worked perfectly before,but would show for the passenger in the car too,so the bit in red is the bit i changed.
Reply
#2

pawn Код:
public OnPlayerEnterInvisibleCP(playerid,icpid){
    new State=GetPlayerState(playerid);
    if(CP1 == 1) {
        if(IsPlayerInICp(playerid, CP1) && State==PLAYER_STATE_DRIVER) {
                ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Select", "Cancel");
                PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);}}
    return 1;
}
Reply
#3

cheers kane i will try a bit later and see what happens
Reply
#4

okay
Reply
#5

yer i just tried it and i think it works a treat,thank for the help kane
Reply
#6

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)