Hoj udělal jsem takovou admin areu že kdy žtam nikdo vleze tak se kněmu řesine objekt(Dinamit)A vybouchne ale nwm jak to mam propojit s publickem a by to bouchlo jen když budu v admin aree.Mně to bouchá i když nejsem v addmin aree
new skouska;
new adminb;
#define barva_cervena 0xAA3333AA
forward AdminArea(playerid);
public OnGameModeInit() {
adminb = CreateObject(1654,-1725.9196,-117.1467,3.5489, 0, 0, 0);
skouska =
SetTimer("AdminArea",1000,1);
return 1;
}
public OnPlayerSpawn(playerid) {
GangZoneShowForPlayer(playerid, skouska, 0xFF804096);
return 1;
}
public AdminArea(playerid)
{
for(new i=0; i{
if (!IsPlayerAdmin(i))
{
new Float:x;
new Float:y;
new Float:z;
SendClientMessage(playerid,barva_cervena,"Byl jsi sestřelen!");
GetPlayerPos(playerid,x,y,z);
MoveObject (adminb,x,y,z,200);
CreateExplosion(x,y,z, 6, 20.0);
}
}
}
Dotaz
Fil 0
Hoj udělal jsem takovou admin areu že kdy žtam nikdo vleze tak se kněmu řesine objekt(Dinamit)A vybouchne ale nwm jak to mam propojit s publickem a by to bouchlo jen když budu v admin aree.Mně to bouchá i když nejsem v addmin aree
Link to comment
Share on other sites
1 odpověd na tuto otázku
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now