[HELP]RemovePlayerFromVehicle depending on color..
#1

hello guys, im newbie on scripting ^^
and i want your help..
i need to create something similar to this:
Код:
if( newstate == PLAYER_STATE_DRIVER )
	{
	    if( model == 490 || model == 445 || model == 427 || GetPlayerVehicleID(playerid) == phel )
		{
		    if( gTeam[playerid] != TEAM )
		    {
            	SendClientMessage(playerid, COLOR_RED, "BLA BLA BLA");
            	RemovePlayerFromVehicle(playerid);
	 		}
		}
but no with model ids
with car colors..
for example if car color is 86,86
the player who is not in the team will be removed...
please help me , and sorry for my bad english , i hope you'll understand :P
thanks!
Reply
#2

i dont think its possible with the default sa-mp functions, sorry.
Reply
#3

This could help.
https://sampwiki.blast.hk/wiki/OnVehiclePaintjob
Reply
#4

i think you just have to replace

if( model == 490 || model == 445 || model == 427 || GetPlayerVehicleID(playerid) == phel )

into

if(Get......huwmm

wait a minute...i dont think you can check carcolors..hangon XD..

EDIT: there are other ways to do it why dont you tell me wich teams you have and wich vehicles you want them to enter or not enter. after that im sure more people are able to help you out
Reply
#5

you will have to make the colors with id's as in..
pawn Код:
new COLOR1 = CreateVehicle...
Then check if they enter that car.
Reply
#6

Quote:
Originally Posted by boelie
Посмотреть сообщение
i think you just have to replace

if( model == 490 || model == 445 || model == 427 || GetPlayerVehicleID(playerid) == phel )

into

if(Get......huwmm

wait a minute...i dont think you can check carcolors..hangon XD..

EDIT: there are other ways to do it why dont you tell me wich teams you have and wich vehicles you want them to enter or not enter. after that im sure more people are able to help you out
i want both teams using same cars so i can't put cars ids..
i just want to find a way exiting the character depending on car color..


Quote:
Originally Posted by ScottCFR
Посмотреть сообщение
you will have to make the colors with id's as in..
pawn Код:
new COLOR1 = CreateVehicle...
Then check if they enter that car.
can you be more specified because im totally newb xd
Reply
#7

Team Cars - Based on Player's gTeam
Reply
#8

i can send you an filterscript i made. compile will give you errors but im sure you if you read it you'll learn from it
pm me with your msn adress if you want me to send it to you
Reply
#9

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
i've read it all before you send it but is to difficult to work on my server because i won't spawn 1 or 2 cars, i will spawn whole pages xD

by the way thank you for your fast support.
Reply
#10

Quote:
Originally Posted by nepstep
Посмотреть сообщение
i've read it all before you send it but is to difficult to work on my server because i won't spawn 1 or 2 cars, i will spawn whole pages xD

by the way thank you for your fast support.
A yea..thats a problem...i tried to set vehicles into a value while they were spawning in a surtain area
i didnt finish that script but in theory it should work and you could have teamvehicles as many as you want without setting them into a value one by one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)