Jump to content

/stop - Pro policii


Drchy

Recommended Posts

ale ako :( moja promena je asi nwm

 

new Job[MAX_PLAYERS]; // Toto znamená proměna povolání.

new JobPick;

 

dcmd_stop(playerid,params[])
{
new id = strval(params);
if (!strlen(params)) return SendClientMessage(playerid,  COLOR_BARVA, "Použití : /stop ID "); //použití
else if(!IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid,  COLOR_BARVA, "Hráč není ve vozidle"); //musi byt ve vozidle
else if(!IsPlayerConnected(id)) return SendClientMessage(playerid,  COLOR_BARVA, "ID Není Připojené");// id musi byt pripojene
else if(Job[playerid] != 0) return  SendClientMessage(playerid,  COLOR_BARVA, "Nejsi Policajt"); //musi byt policajt, tu 0 si změnte na své
{
new string[128];
format(string, sizeof(string), "Hráč %s vám nařizuje aby jste zastavil vozidlo", PlayerName(playerid));
SendClientMessage(id,COLOR_BARVA,string);
  }
  return 1;
}

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...