Jump to content
  • 0

Problema DMV


ar3s

Question

Salut! Am un DMV in gamemode si am incercat sa ii fac o functie care sa-ti spuna "There are no cars available at this moment, please try again later!" cand masinile cu id-u' 277, 284 si 285 sunt ocupate, dar nu-mi iese nici cum, uitati comanda /exam:

if(strcmp(cmd, "/exam", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
		    if(PlayerInfo[playerid][pCarLic] == 0)
		    {
		    	if(PlayerToPoint(3.0,playerid,1412.8313,-1700.3066,13.5395))
		    	{
   					CP[playerid] = 200;
   					SetPlayerCheckpoint(playerid, 1421.1475,-1699.3237,13.2888, 4.0);
	    			TakingLesson[playerid] = 1;
    				PutPlayerInVehicle(playerid, 277, 0);
    				PutPlayerInVehicle(playerid, 284, 0);
    				PutPlayerInVehicle(playerid, 285, 0);
    				SendClientMessage(playerid, COLOR_LIGHTBLUE, "EXAM: Please follow the checkpoints and drive safety!");
   				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   You already have a Drive License !");
			    return 1;
			}
		}
		return 1;
	}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.