Szerző Téma: Life_Commands LifeCMD | Új parancs feldolgozó |  (Megtekintve 1693 alkalommal)

Nem elérhető Soma

Life_Commands LifeCMD | Új parancs feldolgozó |
« Dátum: 2013. Január 03. - 17:28:32 »
+2 Show voters
Üdv, mindenkinek!!

Külföldi fórumon találtam, egy olyan inculédt hogy LifeCMD kipróbáltam, igaz hogy gyorsan dolgozza a parancsot!!


Szóval, vágjunk bele:


Neve: Life_Commands LifeCMD


Készítette: kazon


Telepítés:


Elõször, is létre kell hoznunk egy includét a szerver módunkba!

 
#Include <LifeCMD>

 
Aztán:
 
CMD : mycommand ( playerid ,  params [])  / / (mycommand) your team is spelled without a stick (/) 
{
    / / your code
    return  true ;
}

 
Aztán:
 
LCMD : mycommand ( playerid ,  params [])  / / (mycommand) your team is spelled without a stick (/) 
{
    / / your code
    return  true ;
}

 
Callback:
 
Public  OnPlayerCommandCall ( playerid ,  cmdtext []) 
{
    / / playerid - Player ID | cmdtext - the team itself
    return  true ;
}

 
Aztán:
 
Public  OnPlayerCommandFinish ( playerid ,  cmdtext [],  Success ) 
{
    / / playerid - Player ID | cmdtext - the team itself | success - true or false that is, whether there is a command or not
    return  true ;
}

 
Aztán:
 
Public  OnPlayerCommandCall ( playerid ,  cmdtext []) 
{
    printf ( \"Player: \'% s\' using the command \'% s\'\" ,  PlayerInfo [ playerid ] [ pName ],  cmdtext );
    return  true ;
}

 
Aztán:
 
Public  OnPlayerCommandFinish ( playerid ,  cmdtext [],  Success ) 
{
    if (! Success ) return  SendClientMessage ( playerid ,  COLOR_LIGHTRED ,  \"this command does not exist!\" );
    return  true ;
}

 
Képek:
\"image.png\"
Letöltés:

http://www.solidfiles.com/d/3ac4027fd9/

Remélem, lehetett érteni amit leírtam, ha nem akkor elnézést kérek mivel nem vagyok valami nagy mondat író..


Tisztelettel:


Soma

Nem elérhető Beckham

  • 1693
  • Noresz
  • Discord: Noresz#4265
    • Profil megtekintése
    • OctansV Alt:v szervere
Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #1 Dátum: 2013. Január 03. - 21:12:13 »
0 Show voters
Nemrossz de inkább maradok a jó öreg zcmd-nél :D

Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #2 Dátum: 2013. Január 03. - 23:07:50 »
0 Show voters
Elsõ ránézésre tud mindent amit a ZCMD, használata egyszerû, de a véleményem azonos :D :
 
Idézetet írta: Tom_Hudson date=1357243933\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"31883\" data-ipsquote-contentclass=\"forums_Topic
Nemrossz de inkább maradok a jó öreg zcmd-nél :D
 

Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #3 Dátum: 2013. Január 04. - 01:48:38 »
0 Show voters
OFF: Pfu de utálom ezt a space-el szétszedegetett sorokat.  :tantrum:
ON: várjuk a fejleményeket. (próbálta-e már valaki, stb.)

Nem elérhető Dead

  • 2045
    • Profil megtekintése
Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #4 Dátum: 2013. Január 04. - 06:58:09 »
0 Show voters
ZCMD 100x egyszerûbb. + annyival nem lassabb a zcmd, h abból a playerek érezzenek valamit.

Nem elérhető tonyo

  • 1335
  • Moderális Generátor
    • Profil megtekintése
Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #5 Dátum: 2013. Január 04. - 11:33:27 »
+1 Show voters
Engem a tesztscript érdekelne amivel a sebességet mérték...

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #6 Dátum: 2013. Január 04. - 12:24:39 »
0 Show voters
Idézetet írta: Anthony date=1357295607\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"31883\" data-ipsquote-contentclass=\"forums_Topic
Engem a tesztscript érdekelne amivel a sebességet mérték...
 
Épp ezt akartam írni :D engemet is ez érdekelne  ::|

Nem elérhető shadee

  • 1073
    • Profil megtekintése
Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #7 Dátum: 2013. Január 07. - 13:30:31 »
0 Show voters
Idézetet írta: Anthony date=1357295607\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"31883\" data-ipsquote-contentclass=\"forums_Topic
Engem a tesztscript érdekelne amivel a sebességet mérték...
 
lehet nem is tesztelték,csak printel elõhivatták azt a pár sort.ki tudja :unsure:

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #8 Dátum: 2013. Január 08. - 14:05:33 »
0 Show voters
Idézetet írta: Dead date=1357279089\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"31883\" data-ipsquote-contentclass=\"forums_Topic
ZCMD 100x egyszerûbb. + annyival nem lassabb a zcmd, h abból a playerek érezzenek valamit.
 
Nem értem. Minek lenne egyszerûbb, mikor ugyan úgy kell használni ezt, mint a zcmd-t  :shurg:

Life_Commands LifeCMD | Új parancs feldolgozó |
« Válasz #9 Dátum: 2013. Január 08. - 14:27:32 »
0 Show voters
Igazából én ki próbáltam tetszik meg minden, de nem szoktam parancs feldolgozót használni, hisz a játékosok úgyse észlelnek belõle semmit!
Azért köszi, hogy elhoztad.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal