Jump to content
  • 0

pomoc Respawn - NPC


Guest Thomas.

Dotaz

¨Zdravím chtěl bych jsem se zeptat jak se dá nastavit do přikazu respawn aby to nerespawnovalo npc vůbec jenom tem zbytek kromě npc ?

dcmd_respawn(playerid, params[])
{
#pragma unused params
if(IsPlayerConnected(playerid))
{
      if(Player[playerid][AdminLevel]==0) return SendClientMessage(playerid,COLOR_WARNING,"[ADMIN]: Nejsi Administrátor !");
      else if(Player[playerid][AdminLevel]<=2) return SendClientMessage(playerid,COLOR_WARNING,"[ADMIN]: Na požiti tohoto přikazu potrebuješ Admin Level 2 !");
	  else
	  {
		 for(new i = 1; i <= MAX_VEHICLES; i++)
		 {
		 SetVehicleToRespawn(i);
		 }
		 new Name[24], msg[128];
         GetPlayerName(playerid,Name,24);
         format(msg,128,"(( Administrátor %s respawnul všechny vozidla na serveru. ))",Name);
	     SendClientMessageToAll(COLOR_ADMIN,msg);
      }
}
    return 1;
}

 

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

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