Szerző Téma: /assist-ba anim  (Megtekintve 463 alkalommal)

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
/assist-ba anim
« Dátum: 2013. Július 15. - 18:08:33 »
0 Show voters
Hello. Valaki tudna nekem segíteni animot beépíteni a /assist parancsba mikor beírja /assist akkor a a jármû alá fekszik egy ami egy anim és mikor javítja a jármûvet akkor számolna valami idõzítõ pl 100 ppc-be kellene
COMMAND:assist(playerid, params[])
{
// Setup local variables
new bool:AssistOnline = false, Msg[128], Name[24];
// Send the command to all admins so they can see it
SendAdminText(playerid, \"/assist\", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Get the player\'s name
GetPlayerName(playerid, Name, sizeof(Name));
// Preset the message that needs to be sent to assistance players
format(Msg, 128, \"{00FF00}Játékos {FFFF00}%s{00FF00} automentõt hivott,siess oda.\", Name);
// Check if there is at least one assistance player online
for (new i; i < MAX_PLAYERS; i++)
{
   // Check if this player is connected
   if (IsPlayerConnected(i))
   {
      // Check if this player is assistance class
      if (APlayerData[PlayerClass] == ClassAssistance)
      {
         // Set the flag to indicate that at least one assistance player is online
          AssistOnline = true;
          // Send the assistance player a message to inform him who needs assistance
          SendClientMessage(i, 0xFFFFFFFF, Msg);
      }
   }
}
// Check if there is at least one assistance player online
if (AssistOnline == true)
{
   // Set yourself as \"AssistanceNeeded\"
   APlayerData[playerid][AssistanceNeeded] = true;
   // Let the player know he called for assistance
   SendClientMessage(playerid, 0xFFFFFFFF, \"{00FF00}Már hívott segítséget\");
}
else // No assistance is online
{
   // Check if the player is the driver of a vehicle
   if (GetPlayerVehicleSeat(playerid) == 0)
   {
      // Fully repair the vehicle (damage value and bodywork)
      RepairVehicle(GetPlayerVehicleID(playerid));
      // Also re-fuel the vehicle
      AVehicleData[GetPlayerVehicleID(playerid)][Fuel] = MaxFuel;
      // Let the player pay for the repairs and refuel (default $2000)
      RewardPlayer(playerid, -2000, 0);
      // Let the player know he spent $2000 for auto-repair because there were no assistance players online
       SendClientMessage(playerid, 0xFFFFFFFF, \"Jármûvedet megjavitottuk és megtankoltuk $2000\");
       SendClientMessage(playerid, 0xFFFFFFFF, \"Szerveren nincs most automentõ\");
   }
}
}
else
    return 0;
// Let the server know that this was a valid command
return 1;
}

 
Elõre is köszönöm a segítséget!

/assist-ba anim
« Válasz #1 Dátum: 2013. Július 15. - 21:36:01 »
0 Show voters
Mód elejére
 
new timer;

 
OnGameModeInIt alá
 
SetTimer = (\"timer\",10000,1);

// 10 másodperc
 a többit beirod a parancs alá egyszerû

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
/assist-ba anim
« Válasz #2 Dátum: 2013. Július 16. - 19:32:35 »
0 Show voters
Valaki tudna segíteni ezt az animot berakni ?
LoopingAnim(playerid,\"CAR\", \"Fixn_Car_Loop\", 4.0, 1, 0, 0, 0, 0);

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal