Jump to content

Question

Posted

Bun deci, am inceput sa scriptez, pe zi ce trece vreau sa invat din ce in ce mai mult, acum de exemplu am o idee in cap, am tot auzit ca zcmd sau ycmd sunt cele mai rapide procesoare de comenzi, mai elimina lagul bla bla, eu comenzile din gm le am de genul: 

if(strcmp(cmd, "/gotols", true) == 0)
 {
     if(IsPlayerConnected(playerid))
     {
   if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
   {
    if (GetPlayerState(playerid) == 2)
    {
     new tmpcar = GetPlayerVehicleID(playerid);
     SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
     TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
    }
    else
    {
     SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    }
    SendClientMessage(playerid, COLOR_GREY, "You have been teleported!");
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
   }

adica cu strcmp, ce ar trebuie sa schimb ca sa le transform in ycmd? prima parte adica in loc de:

 if(strcmp(cmd, "/gotols", true) == 0)

sa pun:

YCMD:gotols(playerid, params[]);? +1 celui care ma ajuta.

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

2 answers to this question

Recommended Posts

  • 0
Posted

Da.In loc de: 

if(strcmp(cmd, "/gotols", true) == 0)

pui pentru ZCMD:

CMD:gotols(playerid ,params[])
{
   //Comanda
}

iar pentru YCMD:

YCMD:gotols(playerid ,params[])
{
   //Comanda
}

 

  • 0
Posted

Topic Closed . Repsecta modelul . Nu stiu cum, desi va intra modelul in ochi cand intrati la ajutor scripting voi nu-l vedeti ...

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.