31.05.2014, 22:24
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!");
}