Quote:
Originally Posted by Sjn
Yes;
PHP код:
switch (vehicleid)
{
case PD_LSPDUND4, PD_LSPDUND5, PD_LSPDUND6, PD_LSPDUND7, PD_LSPDUND8, PD_LSPDUND9, PD_LSPDTAXI:
{
if(PInfo[playerid][pCop] <= 7)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+1);
SendClientMessage(playerid,0xAA3333AA, "You are not a Detective I");
}
}
}
However, the way you are creating the vehicles is bad for this condition. You can create a custom function to create a vehicle and inside the function while creating those police vehicles (or whatever they are), you can assign a variable to them. For example; g_PoliceVehicle[vehicleid] = 1;
Then you can simply check if the variable is positive then eject the player without having to detect every created vehicle IDs.
|
Thanks for the help btw.
Can you show me a example