I need your help
#3

Quote:
Originally Posted by Sjn
Посмотреть сообщение
Yes;

PHP код:
switch (vehicleid)
{
    case 
PD_LSPDUND4PD_LSPDUND5PD_LSPDUND6PD_LSPDUND7PD_LSPDUND8PD_LSPDUND9PD_LSPDTAXI:
    {
        if(
PInfo[playerid][pCop] <= 7)
        {
            new 
Float:xFloat:yFloat:z;
            
GetPlayerPos(playeridxyz);
            
SetPlayerPos(playeridxyz+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
Reply


Messages In This Thread
I need your help - by canip - 17.05.2016, 16:41
Re: I need your help - by Sjn - 17.05.2016, 17:29
Re: I need your help - by canip - 17.05.2016, 18:26
Re: I need your help - by canip - 17.05.2016, 18:57
Re: I need your help - by iKevin - 17.05.2016, 19:23
Re: I need your help - by canip - 17.05.2016, 19:26
Re: I need your help - by iKevin - 17.05.2016, 19:28
Re: I need your help - by Sjn - 17.05.2016, 19:53

Forum Jump:


Users browsing this thread: 2 Guest(s)