SA-MP Forums Archive
cant fix this need help... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: cant fix this need help... (/showthread.php?tid=96580)



cant fix this need help... - Erkan - 09.09.2009

Код:
	if(CarID == grovecars25)
 	{
	if(PlayerColour == TEAM_GROVE || PlayerColour == COLOR_WHITE)
	{
	//Message to team when enters car?
	}
  else
  {
  SendClientMessage(playerid, RED,"SERVER MESSAGE: You are not a member of the Grove Street Famillies.");
  //SendClientMessage(playerid, YELLOW, "SERVER MESSAGE: If you have a picklock, you can brake into the vehicle. Read /picklock.");
  	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
  SetPlayerPos(playerid, X+2, Y+2, Z+2);
  }
  	}

If I am white Colour, I can't enter the car still, I get the warning that I am not GS member


Re: cant fix this need help... - Erkan - 09.09.2009

any Ideas?


Re: cant fix this need help... - Correlli - 09.09.2009

And how is PlayerColour defined?


Re: cant fix this need help... - Erkan - 09.09.2009

new PlayerColor;
PlayerColor = GetPlayerColor(playerid);