Szerző Téma: zcmdból rendes parancs  (Megtekintve 984 alkalommal)

zcmdból rendes parancs
« Dátum: 2012. Január 10. - 14:54:13 »
0 Show voters
hogy lehet egy zcmd-s parancsot rendes parancsá alakitani?

dexi

  • Vendég
zcmdból rendes parancs
« Válasz #1 Dátum: 2012. Január 10. - 14:55:44 »
0 Show voters
Kézel meg egy bill.el.

Nem elérhető Norby

  • 1575
    • Profil megtekintése
zcmdból rendes parancs
« Válasz #2 Dátum: 2012. Január 10. - 15:02:35 »
0 Show voters
http://sampforum.hu/index.php?topic=19492.0
Itt keresd a hozzászólásom!
De annyira nehéz kicsit körülnézni a fórumon hátha van már hasonló téma ??

zcmdból rendes parancs
« Válasz #3 Dátum: 2012. Január 10. - 15:03:18 »
0 Show voters
de pl
 
   CMD:warn(playerid,params[])
{
new id;
new ok[128];
new name[MAX_PLAYER_NAME];
new name2[MAX_PLAYER_NAME];
new string[250];
GetPlayerName(playerid,name2,sizeof(name2));
/*-----------------------------*/
 if(sscanf(params,\"is[128]\", id,ok))return SendClientMessage(playerid,RED, \"HIBA: /warn [Játékos ID][Ok]\");
    GetPlayerName(id,name,sizeof(name));
/*-----------------------------*/
    {
    warnok[id]++;
    /*----*/
    format(string,sizeof(string),\"*Admin %s warnolta %s-t.(%d. warn) Ok: {b30000}%s\", name2, name,warnok[id] ,ok);
    /*----*/
       if(warnok[id] <= 2)
          {
         SendClientMessage(id, RED, \"Egy admin warnolt téged!\");
         SendClientMessageToAll(PUB,string);
          }
   else{
   SendClientMessageToAll(PUB,string);
   SendClientMessage(playerid, RED, \"Összegyült a 3 warn-od. Ki lettél banolva a szerverrõl.\");
   Ban(id);}
}
return 1;

 
ezt hogy tudom rendes parancsá átírni?

zcmdból rendes parancs
« Válasz #4 Dátum: 2012. Január 10. - 15:04:15 »
0 Show voters
átírod az elsõ sort olyanra mint az alap.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal