Load From a Variable
#4

No i hope i really understood you this time, you should do something like this.
pawn Код:
new chasecar;//Global variable in the top of your script!

public OnGameModeInit()
{
    chasecar = CreateVehicle(411,x,y,z,angle,3,3);//here i used the variable and created an infernus for example
    return 1;
}

//Later OnPlayerCommandReceived
{
if(IsPlayerInVehicle(playerid, chasecar)) return SendClientMessage(playerid,RED,"Commands are disabled in carchase!");
}
Reply


Messages In This Thread
Load From a Variable - by youssefehab500 - 31.05.2014, 22:10
Re: Load From a Variable - by SilentSoul - 31.05.2014, 22:14
Re: Load From a Variable - by youssefehab500 - 31.05.2014, 22:18
Re: Load From a Variable - by SilentSoul - 31.05.2014, 22:24
Re: Load From a Variable - by youssefehab500 - 31.05.2014, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)