31.08.2017, 08:21
hii, I want if a player has these flags:
and then attempts to take the license again.. just sendclientmessage that you alr have a license.
think it'll go somewhere here:
stop the player from getting into SendToDrivingTest if he has those flags..
Код:
lflags |= ELicense_Drivers; lflags |= ELicense_Trucker; lflags |= ELicense_Fishing; lflags |= ELicense_Sailing; lflags |= ELicense_Flying;
think it'll go somewhere here:
Код:
case EGovDialog_DMVMenu: {
if(!response) {
return 0;
}
new ELicenseFlags:lflags = ELicenseFlags:GetPVarInt(playerid, "LicenseFlags");
switch(listitem) {
case 0: {
if(GetMoneyEx(playerid) >= 1000) {
SendToDrivingTest(playerid);
GiveMoneyEx(playerid, -1000);
return 1;
} else {
SendClientMessage(playerid, X11_TOMATO_2, "You do not have enough money");
}


