Any other methodes to do this?
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
PHP код:
// global
new gVipVehicles[20];
// gm init
gVipVehicles[0] = CreateVehicle(...);
gVipVehicles[1] = CreateVehicle(...);
gVipVehicles[2] = CreateVehicle(...);
// ...
gVipVehicles[19] = CreateVehicle(...);
// OnPlayerStateChange or wherever
if(in_array(VehIDgVipVehicles))
{
    
SendClientMessage(playeridYELLOW"[VIP]: Welcome to VIP Vehicle"); 

so it would be something like this?

PHP код:
       new VehID GetPlayerVehicleID(playerid);
    if(
newstate == PLAYER_STATE_DRIVER && (VehIDgVIPVehicles[37])){
         if(
VIPInfo[playerid][VIPLevel] > 0){
            
SendClientMessage(playeridYELLOW"[VIP]: Welcome to VIP Vehicle");
            return 
1;
        }
        else{
            
ErrorMessages(playerid1);
            
RemovePlayerFromVehicle(playerid);
        }
    } 
because it didn't work, the client message didn't showup neither ways
Reply


Messages In This Thread
Any other methodes to do this? - by Eoussama - 07.10.2016, 20:14
Re: Any other methodes to do this? - by EtayJ - 07.10.2016, 20:17
Re: Any other methodes to do this? - by AbyssMorgan - 07.10.2016, 20:35
Re: Any other methodes to do this? - by Vince - 07.10.2016, 20:56
Re: Any other methodes to do this? - by Eoussama - 07.10.2016, 21:12
Re: Any other methodes to do this? - by Vince - 07.10.2016, 21:16
Re: Any other methodes to do this? - by Eoussama - 07.10.2016, 21:45
Re: Any other methodes to do this? - by AndySedeyn - 07.10.2016, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)