LICENSE [PROBLEM]
#1

Hi everyone.

I make planes license system but i don't know how to do something.
When player enter plane if he don't have plane license remove him from plane.
I don't know how make it so I please your help.

I USE THIS BUT IT WORK WRONG :

Код:
if(model == 417 || model == 563 || model == MAVERICK || model == 425 || model == 447 || model == 460 || model == 469 || model == 476 || model == 497 || model == 511 || model == 512 || model == 513 || model == 519 || model == 520 || model == 548 || Lmodel == 553 || model == 577 || model == 593 ) //IF THE PLANE
{
if(!playerDB[playerid][plicense])
{
Stop(playerid);
SendClientMessage(playerid,COLOR,"{F81414}* You Don't Have Plane License!");
}
return 1;
}
Reply
#2

use RemovePlayerFromVehicle(playerid, VID); to replace Stop(playerid); and use new VID = GetPlayerVehicleID(playerid);
Reply
#3

(4664) : warning 202: number of arguments does not match definition


Код:
new VID = GetPlayerVehicleID(playerid);
if(VID == 417 || VID == 563 || VID == MAVERICK || VID == 425 || VID == 447 || VID == 460 || VID == 469 || VID == 476 || VID == 497 || VID == 511 || VID == 512 || VID == 513 || VID == 519 || VID == 520 || VID == 548 || VID == 553 || VID == 577 || VID == 593 ) //If Plane
{
if(!playerDB[playerid][plicense])
{
RemovePlayerFromVehicle(playerid,VID);
SendClientMessage(playerid,COLOR,"{F81414}* You Don't Have Plane License!");
}
return 1;
}
Like This ?

And Where Better Put This Code?

Please reply I need it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)