Jump to content
  • 0

pomoc Command Text


TheKid

Dotaz

Cau vzdy mi to vyhodi unknown command !

 

public OnPlayerCommandText(playerid, cmdtext[])
{
   if(!strcmp(cmdtext, "/test1", true))
   {
  LinkVehicleToInterior(vehicle, 10);
	    SetVehiclePos(vehicle, -1079.99, 1061.58, 31343.04);
  RemovePlayerFromVehicle(vehicle);
  DestroyVehicle(vehicle);
  minigame = 2;
	    SetGameModeText("Sniper + Deagle");
  SetPlayerInterior(playerid,10);
  SetPlayerPos(playerid,-1079.99,1061.58,1343.04);
	    SetPlayerFacingAngle(playerid,0.0);
	    ResetPlayerWeapons(playerid);
  GivePlayerWeapon(playerid,24,9999);
  GivePlayerWeapon(playerid,34,9999);
	    healthtd = TextDrawCreate(572,148,"5");
	    health[playerid] = 5;
  TextDrawSetString(playerid,health);
  TextDrawShowForPlayer(playerid,healthtd);
    return 1;
   }
   if(!strcmp(cmdtext, "/test1", true))
   {
   SetPlayerHealth(playerid,0.00);
   return 1;
   }
   return 0;
}

 

Ani jeden prikaz nefunguje !

 

Díky

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

to si davaš do modu alebo robiš script mal som tiez problem jeden daval dom si radio,ovladanie,tip,carmenu do kopy všetko a dal som to na server a nič nejšlo

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0
  • Administrátor

Ten return tam je od toho aby to příkaz uznalo . Jestli to máš jako FS tak se podívej jestli sis ho načetl. Jestli to máš v módu tak se podívej jestli ti to někde neblokuje nějaká podmínka nebo podobný kraviny

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