15.08.2010, 13:57
i get now way to add include from scriptfiles folder
#include "../scriptfiles/include_file"
now i want set
my include not hard i want now under line AdminLevel[selected_id[playerid]] = 2;
} set line again
GetPlayerName(playerid, "OmarEco");
{
AdminLevel[selected_id[playerid]] = 2;
}
but with inputtext becouse it's for dialog
for dialog
how
#include "../scriptfiles/include_file"
now i want set
Code:
#include <a_samp> public OnPlayerConnect(playerid) { GetPlayerIp(playerid,"here's ip"); GetPlayerName(playerid, "OmarEco"); { AdminLevel[selected_id[playerid]] = 2; } return 1; }
} set line again
GetPlayerName(playerid, "OmarEco");
{
AdminLevel[selected_id[playerid]] = 2;
}
but with inputtext becouse it's for dialog
Code:
if(dialogid ==9) { new string[100]; new pName[32]; GetPlayerName(selected_id[playerid],pName,32); if (response == 1) { AdminLevel[selected_id[playerid]] = strval(inputtext); format(string,128,"You succesfully modified %s 's level to level: %i!",pName,strval(inputtext)); SendClientMessage(playerid,0x0091FFFF,string); } else { format(string, sizeof string,"Admin Panel For %s",pName); ShowPlayerDialog(playerid,1,2,string,"Set Level \r\nSpectate \r\nBring \r\nGoto \r\nKick \r\nBan \r\nJail \r\nUnjail \r\nFreeze \r\nUnfreeze \r\nSet money \r\nSet score \r\nKill \r\nLaunch \r\nMute \r\nUnmute \r\nWhois \r\nExtra Options \r\nTeleport","Select","Exit Menu"); } }
Code:
ShowPlayerDialog(playerid,9,1,"Change level","0:Player \n1:Moderator \n2:Full admin","Set","Back");