Givelicenses SI problem
#1

hy.
Look I managed to do in gamemod a script to suspend the driving license and other
Tions that I put all on payday, the showlicenses, Licenses, and others, all necessary

But I have a problem fail to make condition
When an instructor wants to School of the license that a player, and if the player still has the card suspended for 3 hours .. to tell, that player can not receive a license is suspended until his passing .. hours the suspension ....

Can you help me please??

Condition used to suspend the driving license pCarLicS
We give just one example that it is pointless to give you other examples like pBoatLicS, pGunLicS
Only pCarLicS because if you can help me do the same and the other

Well ..
Givelicenses command will give only part of the driving lcienta
and if I can help, what variables to put to say what I explained above
that is to say that player is suspended and it can not get license

Код:
if(strcmp(x_nr,"driving",true) == 0)
				{
		            tmp = strtok(cmdtext, idx);
					if(!strlen(tmp))
					{
					    SendClientMessage(playerid, COLOR_IREAL_SYNTAX, "Syntax: /givelicense driverslicense [playerid/PartOfName]");
					    return 1;
					}
					giveplayerid = ReturnUser(tmp);
					if(IsPlayerConnected(giveplayerid))
					{
					    if(giveplayerid != INVALID_PLAYER_ID)
					    {
					        GetPlayerName(playerid, sendername, sizeof(sendername));
					        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
				            format(string, sizeof(string), "* You've given a Drivers License to %s.",giveplayer);
					        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
					        format(string, sizeof(string), "* Instructor %s has given you a Drivers License.",sendername);
					        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
					        PlayerInfo[giveplayerid][pCarLic] = 1;
					        return 1;
				        }
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   That player is Offline !");
					    return 1;
					}
				}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)