Jump to content
  • 0

pomoc potrebujem pomoct


Guest [*LoNg*]LiFe

Dotaz

Guest [*LoNg*]LiFe

cawte potrebujem take nieco ze ked sa pripojim na server tak mi to otvory menu a vtom menu bude 1 TERORISTA a v 2 POLICAJT ked vybere napr policajta tak k tomu by som chcel nech idu suradky napr sem 1905.7654,956.2706,10.8203 dik za help

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

nahoru do módu :

new Menu:povolani;

 

do OnGameModeInit(){

povolani = CreateMenu("~g~Povolani", 2, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(povolani, 0, "Terorista");
AddMenuItem(povolani, 0, "Policista");

 

do OnPlayerConnect(playerid){

ShowMenuForPlayer(povolani,playerid);

 

do OnPlayerSelectedMenuRow(playerid, row){

new Menu:blabla;
blabla = GetPlayerMenu(playerid);
if(blabla == povolani){
switch(row){
case 0: {
// sem si dej co se stane kdyz si vybere terorista
}
case 1: {
SetPlayerPos(playerid,1905.7654,956.2706,10.8203); // co se stane kdyz si vybere policista
}}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...