Jump to content

Rezervace postavy [BY bzuco] [REMAKED BY CHEF]


Guest CHEF

Recommended Posts

Nahoru

new gPlayerClass[MAX_PLAYERS];
forward SetupPlayerForClassSelection(playerid);

 

 

OnPlayerSpawn

new string[256];
new name[10];
GetPlayerName(playerid,name,sizeof(name));

if (strcmp(name, "JMÉNO_REZERVOVANEHO_HRACE", true)!= 0) {
if (gPlayerClass[playerid]==237) { //237 = číslo postavy v pořadí (né číslo skinu) ale číslo skinu ve vybíracím pořadí
format(string, sizeof(string), "Hráč %s si vybral rezervovanou postavu hráče JMÉNO_REZERVOVANEHO_HRACE, byl kicknut!",name);
SendClientMessageToAll(COLOR_RED, string);
Kick(playerid);
}
}

 

 

public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
SetupPlayerForClassSelection(playerid);
switch (classid) {

case 237:
{
GameTextForPlayer(playerid, "~g~Rezervace: JMÉNO_REZERVOVANEHO_HRACE", 1000, 3);
}

}
return 1;
}

 

 

novy public

public SetupPlayerForClassSelection(playerid)
{
//zde si zadame pozice pro vyber postavy
SetPlayerPos(playerid,2480.5632,1297.5200,10.8125);
SetPlayerCameraPos(playerid,2483.5488,1297.3768,10.8125);
SetPlayerCameraLookAt(playerid,2480.5632,1297.5200,10.8125);
}

Link to comment
Share on other sites

Mam vlastni system jde o to, ze kdyz si to hrace vybere tak dostane jiny skin a jine povolani, a kdyz to ve hre nejak dostane tak taky, nekde behem hry, bug je v tom ze kdyz mate vybrane classid treba 10 ale mate skin s id 120, ktery tam vubec neni tak si sa mp porad mysli ze mate skin, ktery jste dostali pri vyberu skinu 10, ale ja to mam vyresene pres nejake promene uz nwm delal sem to .. to uz je dyl..

Link to comment
Share on other sites

ježiš nespamuj ježiš nespamuj a komu to tady cpeš si jen malé ho*no když bude chytrák chtět tak to smaže, on je admin vlezdoprdelko

 

já to cpu tobě, toho sis nevšim ? :) a to nemůžu zažádat někoho o něco když je to tu stejně zbytečný ?

 

hele chytrák on ti říká že jsi admin vlezdoprdelka :d

CHEFE ses asi díval na "Kdo hulí, ten umí" ne ?

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