Load From a Variable
#5

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
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!");
}
hmmmm ill add some details that will make it easy bro and anyways ill rep+ u for trying your best to help me im trying to load a vehicle id from a variable to use on a fs its saved in a .txt i saved with dini can this become ?
if you help me load it i know the rest but can you? sorry if i was being rude or anything
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)