Skripta koju koristim: noxicus 0.3c
Detaljan opis problema: znaci meni /aon i /aoff rade ali ja zelim prebacit server u 0.3d a neznam kak i kada napisem /aon da mi se pokaze tekst iznad
Dio skripte: CMD:aon(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 0)
{
SetPVarInt(playerid, "ADuty", 1);
new sMsg[ 128 ];
GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
//SetPlayerColor(playerid, 0xE30000FF);
D_SetPlayerHealth(playerid,200.0);
SetPlayerArmour(playerid,100.0);
SendClientMessage(playerid, 0xE30000FF, "Sada si Admin On Duty !");
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
playertextid = CreatePlayer3DTextLabel(playerid,"{FF0000}Admin na Duznosti!\n{FF6E6E}Ne ometaj!",0xE30000FF,fa,fy,fu,40.0, playerid);
//Attach3DTextLabelToPlayer(Text3D:playertextid, playerid, 0.0, 0.0, 0.0);
//DutyLabel[playerid] = CreatePlayer3DTextLabel(playerid,"Admin na Duznosti \n Ne ometaj!", 0xE30000FF, 0.0, 0.0, 0.0, 25.0, INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
}
return 1;
}
CMD:aoff(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 1)
{
SetPVarInt(playerid, "ADuty", 0);
new sMsg[ 128 ];
GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
SetPlayerColor(playerid, COLOR_WHITE);
D_SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,0.0);
SendClientMessage(playerid, 0xB30000FF, "Nisi vise Admin On Duty !");
DeletePlayer3DTextLabel(playerid, playertextid);
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
nadam se da mi mozete pomoc za oboje
CMD:aon(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 0)
{
new string[128];
SetPVarInt(playerid, "ADuty", 1);
new sMsg[ 128 ];
GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
D_SetPlayerHealth(playerid,200.0);
SetPlayerArmour(playerid,100.0);
format(string, sizeof(string), "Admin %s je na duznosti", sMsg);
GBroadCast(COLOR_LIGHTBLUE,string,1);
ABroadCast(COLOR_LIGHTBLUE,string,1);
SendClientMessage(playerid, 0xE30000FF, "Sada si Admin On Duty !");
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
SetPlayerChatBubble(playerid, "Admin na Duznosti, Ne Ometaj", COLOR_LIGHTBLUE, 50.0, 99999999999);
//DutyLabel[playerid] = CreatePlayer3DTextLabel(playerid,"Admin na Duznosti \n Ne ometaj!", 0xE30000FF, 0.0, 0.0, 0.0, 25.0, INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
}
return 1;
}
CMD:aoff(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 1)
{
new string[128];
SetPVarInt(playerid, "ADuty", 0);
new sMsg[ 128 ];
GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
SetPlayerMarkerForPlayer(playerid, 1, 0xFFFFFF00 ); //ovaj dio je vazan("00" na kraju koda boje), on stavlja da je blip transparentan tj. nema ga
SetPlayerColor(playerid,0xFFFFFF00); //ehhh sad, nisam siguran dal ovo uopce treba (postavlja igracevu boju na bijelu)
D_SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,0.0);
format(string, sizeof(string), "Admin %s vise nije na duznosti", sMsg);
GBroadCast(COLOR_LIGHTBLUE,string,1);
ABroadCast(COLOR_LIGHTBLUE,string,1);
SendClientMessage(playerid, 0xB30000FF, "Nisi vise Admin On Duty !");
DeletePlayer3DTextLabel(playerid, playertextid);
SetPlayerChatBubble(playerid, "", COLOR_LIGHTBLUE, 50.0, 99999999999);
}
return 1;
}
radi thx