14.06.2010, 16:01
Under OnPlayerCommandText(playerid,cmdtext[])
Код:
if(!strcmp(cmdtext,"/deliver",true,8)) { new veh=GetPlayerVehicleID(playerid); new mode=GetVehicleModel(veh); if(model!=420) return SendClientMessage(playerid,0xff00ffaa,"This command cannot be used in this vehicle"); //if the vehicle is not the vehicle you want the command to be used in //rest of the code return 1 }