Jump to content
  • 0

pomoc Výběr postav+rozdíl


TuronCZ

Dotaz

Dělám si prison gamemode, a na začátku bych chtěl, aby jsi nový či zaregistrovaní hráči mohli vybrat skin(vězňů a dozorců).

    Potřeboval bych, jak si udělám ten výběr postav, aby dozorce, si mohli vybrat jen hráči se skórem 3000 +?

    a vězně 0+, snad chápete.

 

Budu RÁD za každé odpovědi, s pozdravem Turon .

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid,1015.8859,-1337.0668,14.1146); //Pozicia 
    SetPlayerCameraPos(playerid,1013.0806,-1332.3610,13.3887); //Pozicia
    SetPlayerCameraLookAt(playerid,1015.8859,-1337.0668,14.1146); //Pozicia 
    return 1;
}

No potom tých dozorcov to je nejak SetPlayerScore .. a potom tam dáš return SCM(playerid,0x33ccffaa,"Nemáš 3000 Bodov.");

 Nejak tak to moc nwm..

Link to comment
Share on other sites

  • 0
  • Globální moderátor
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid,1015.8859,-1337.0668,14.1146); //Pozicia 
    SetPlayerCameraPos(playerid,1013.0806,-1332.3610,13.3887); //Pozicia
    SetPlayerCameraLookAt(playerid,1015.8859,-1337.0668,14.1146); //Pozicia 
    return 1;
}

No potom tých dozorcov to je nejak SetPlayerScore .. a potom tam dáš return SCM(playerid,0x33ccffaa,"Nemáš 3000 Bodov.");

 Nejak tak to moc nwm..

 

preboha neraď keď nevieš poradiť.... a keď už aj píšeš že to nevieš tak načo radíš?

Link to comment
Share on other sites

  • 0

Stači ti to asi takhle? :)

 

public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0..31:
{
Player[playerid][Team]=0;
GameTextForPlayer(playerid,"TEXT",2000,5);
}
case 32..34:
{
Player[playerid][Team]=1;
GameTextForPlayer(playerid,"TEXT",2000,5);
}
}
}
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...