Szerző Téma: nem használható parancsok  (Megtekintve 564 alkalommal)

nem használható parancsok
« Dátum: 2014. Február 19. - 02:10:30 »
0 Show voters
üdv!
engem olyasmi érdekelne hogy pl beirom azt hogy /god,akkor azon belül csak engedélyezett parancsok legyenek egedélyezve,a nem engedélyezettekhez meg egy clientmessageal ki lenne irva hogy Nem használhatsz parancsokat god módban!
ez hogy kivitelezhetõ??
elõre is köszönöm!
« Utoljára szerkesztve: 2014. Február 19. - 14:55:51 írta Dead Space »

nem használható parancsok
« Válasz #1 Dátum: 2014. Február 19. - 10:58:46 »
0 Show voters
Mód elejére:
 
new bool: god[MAX_PLAYERS];

 
A parancs:
 
CMD:god(playerid)
{
if(god[playerid] == false)
{
    god[playerid] = true;
    SetPlayerHealth(playerid, 9999999999999);
    SendClientMessage(playerid, -1, \"God Mód bekapcsolva.\");
}
else
{
    godplayerid] = false;
    SetPlayerHealth(playerid, 100);
    SendClientMessage(playerid, -1, \"God Mód kikapcsolva\");
}
return 1;
}

 
És ha parancsot akar és be van kapcsolva a GOD akkor:
 
CMD:fegyver(playerid, params[])
{
if(god[playerid] == false)
{
GivePlayerWeapon(playerid, 24, 14);
}
else
{
    SendClientMessage(playerid, -1, \"HIBA:Elõbb kapcsold ki a GOD Módot!\");
}
return 1;
}

 
Alakítsd át amilyenre szeretnéd,ez csak egy példa!

nem használható parancsok
« Válasz #2 Dátum: 2014. Február 19. - 14:07:17 »
0 Show voters
Idézetet írta: Kovacs_Richard date=1392805999\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"46605\" data-ipsquote-contentclass=\"forums_Topic

SetPlayerHealth(playerid, 9999999999999);

 
ne feküdj rá a billentyûzetre :D inkább olvass :)
http://en.wikipedia.org/wiki/2147483647
http://en.wikipedia.org/wiki/Integer_%28computer_science%29
http://en.wikipedia.org/wiki/32-bit
 
xD
az megöli nem?

nem használható parancsok
« Válasz #3 Dátum: 2014. Február 19. - 14:36:41 »
0 Show voters
Mi öli meg ? Beteg vagy ? :D

nem használható parancsok
« Válasz #4 Dátum: 2014. Február 19. - 14:55:23 »
0 Show voters
na m1 :D
megoldódott köszönöm :)

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
nem használható parancsok
« Válasz #5 Dátum: 2014. Február 19. - 16:42:21 »
0 Show voters
[gmod]Máskor ne felejtsd el zárni a témát.[/gmod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal