LICENSE [PROBLEM] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: LICENSE [PROBLEM] (
/showthread.php?tid=289950)
LICENSE [PROBLEM] -
Serifukas - 13.10.2011
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;
}
Re: LICENSE [PROBLEM] -
Zonoya - 13.10.2011
use RemovePlayerFromVehicle(playerid, VID); to replace Stop(playerid); and use new VID = GetPlayerVehicleID(playerid);
Re: LICENSE [PROBLEM] -
Serifukas - 13.10.2011
(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