Jump to content
  • 0

pomoc nastavení TEAMu


J3T4M

Dotaz

Zdravím potřebuju pomoct s nastavením teamu když dá hráč příkaz /ballas nastaví mu to team ballas.

Když bude hráč ballas nastaví mu to skin, ale když není ballas nenastaví mu to žádnej jinej skin

hlavně potřebuju vědět jak by bylo to if (IsPlayerBallas....) , if (!IsPlayerBallas....) jak to udělat aby mi to fungovalo, abych mohl nastavovat věci ballasům ale kdyby to chtěl neballas třeba mu to napíše že není člen ballas gangu. (Jo vím, že toho chci moc :d)  Předem děkuju.

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

forward IsPlayerBallas(playerid);
public IsPlayerBallas(playerid)
{
    new id = GetPlayerSkin(playerid);
    if(id == ballasskin1 || id == ballasskin2)//tady si je vypiš
    {
        return 1;
    }
    return 0;
}

 

Pak tedy:

if(!IsPlayerBallas(playerid)) return SendClientMessage(playerid,-1,"Nejsi Ballas");

Link to comment
Share on other sites

  • 0

Děkuju :) a to if(!IsPlayerBallas(playerid)) si můžu používat i v jiných public(ách)? 


takže třeba do OnPlayerSpawn dám if (IsPlayerBallas(playerid)) a pod to třeba GivePlayerAmmo, SetPlayerTeam(playerid,Ballas) šlo by to ? 

Link to comment
Share on other sites

  • 0

takže když má hráč skin ballas tak je automaticky ballas jo ? 

Tak ti tady ten script napsali. Je samozdrejme natobe podle ceho to budes rozlisovat :d

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