23.02.2017, 11:07
So i have system if i didn't reach my time like example 210 second, map start with 250 second i can use gui table bat if time passed 210 second i cant use it, bat i can press on that gui selection and allow me chose what i want bat important part that this gui give me nothing just set my selection for future like i get that slection if i die or new round started then i get it. Like example if passed 210second
I open gui table and i choose "Test - M4, GLOCK - 1500xp" i press on it and get nothing bat if i dead or new round started then i automatically get it. So conclusion if time passed over 210 i press on gui selection i get message "Class will select if you dead or new round will started". I have made something like this already bat its not over.
look like this.
P.S i have and this script part. I think its important to.
I use it on OnPlayerSpawn
I hope guys you will understand it. Sorry for my poorly worded sentences.
I open gui table and i choose "Test - M4, GLOCK - 1500xp" i press on it and get nothing bat if i dead or new round started then i automatically get it. So conclusion if time passed over 210 i press on gui selection i get message "Class will select if you dead or new round will started". I have made something like this already bat its not over.
look like this.
Код:
case DIALOG_CLASS_5:
{
if(teams[playerid] == TEAM_ZOMBIE)
{
if(response)
{
if(times >= 210) // so if time passed 210 second i can use this anymore. I need make this like i said.
{
switch(listitem)
{
case 0: if(pInfo[playerid][pXP] >= 15000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDBOOMER,setClass(playerid); else { SendXPError(playerid,15000); }
case 1: if(pInfo[playerid][pXP] >= 50000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = FREEZERZOMBIE,setClass(playerid); else { SendXPError(playerid,50000); }
}
Код:
stock setClass(playerid)
{
if(teams[playerid] == TEAM_ZOMBIE)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,9,1);
SetPlayerArmour(playerid,0);
switch(pInfo[playerid][pZombieClass])
{
case ADVANCEDBOOMER: SetPlayerSkin(playerid,130), SetPlayerHealth(playerid,50);
case FREEZERZOMBIE: SetPlayerSkin(playerid,137), SetPlayerHealth(playerid,45);
}
}
return 1;
}
I hope guys you will understand it. Sorry for my poorly worded sentences.


