Jump to content
  • 0

Request Class!


Pinki950

Question

Cum as putea face la OnPlayerSpawn sa imi arate un dialog in loc de asta:

[pawn] switch (classid)

{

case 0: // Classes that will be truckdrivers

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassTrucker, 3000, 4);

// Store the class for the player (truckdriver)

APlayerData[playerid][PlayerClass] = ClassTruckDriver;

}

case 1: // Classes that will be bus-drivers

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassBusDriver, 3000, 4);

// Store the class for the player (busdriver)

APlayerData[playerid][PlayerClass] = ClassBusDriver;

}

case 2: // Classes that will be Pilot

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassPilot, 3000, 4);

// Store the class for the player (pilot)

APlayerData[playerid][PlayerClass] = ClassPilot;

}

case 3: // Classes that will be police

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassPolice, 3000, 4);

// Store the class for the player (police)

APlayerData[playerid][PlayerClass] = ClassPolice;

}

case 4: // Classes that will be mafia

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassMafia, 3000, 4);

// Store the class for the player (mafia)

APlayerData[playerid][PlayerClass] = ClassMafia;

}

case 5: // Classes that will be courier

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassCourier, 3000, 4);

// Store the class for the player (courier)

APlayerData[playerid][PlayerClass] = ClassCourier;

}

case 6: // Classes that will be assistance

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassAssistance, 3000, 4);

// Store the class for the player (assistance)

APlayerData[playerid][PlayerClass] = ClassAssistance;

}

case 7: // Classes that will be roadworker

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassRoadWorker, 3000, 4);

// Store the class for the player (roadworker)

APlayerData[playerid][PlayerClass] = ClassRoadWorker;

}

}[/pawn]

?q=192&s=s&bg1=5eeb06&bg2=3a7bfc&t=000&gl=fff&b=000000&gbg=000
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

cauta pe net , daca ar fi dupa tine ai vrea sa facem noi tot

PS: O DATA CE ESTE UN TOPIC REZOLVAT SPUNE !!!

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

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.