Jump to content
  • 0

Cerere comanda [/up] & [closestcar] pentru gm burned


Question

2 answers to this question

Recommended Posts

  • 0
Posted

CMD:closestcar(playerid, params[]) 

    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, AdminOnly); 
    if(IsPlayerInAnyVehicle(playerid))return SCM(playerid, COLOR_GREY, "Esti deja intr-un vehicul."); 
    new thacar = GetClosestVehicle(playerid), string[150], sendername[25];
    PutPlayerInVehicle(playerid, thacar, 0); 
    SCM(playerid, COLOR_GREY,"Ai fost teleportat in cel mai apropiat vehicul."); 
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "AdmCmd: Admin %s s-a teleportat in masina ID %d cu ajutorul comenzi /closestcar.",sendername, GetPlayerVehicleID(playerid));
    SendAdminMessage(COLOR_LOGS, string, 1);
    Adminlog(string);
    return 1; 

 

 

CMD:up(playerid,params[]) {
    if(PlayerInfo[playerid][pAdmin] >= 1) {
        new Float:slx, Float:sly, Float:slz;
        GetPlayerPos(playerid, slx, sly, slz);
        SetPlayerPosEx(playerid, slx, sly, slz+5.0);
    }
    return 1;
}

  • Upvote 1
  • 0
Posted
Acum 6 minute, Florin32 a spus:

Salut, doresc si eu comanda [/up] si [/closestcar] pentru gm-ul burned, multumesc frumos 

Nu se cer sisteme sau voi asta intelegeti prin "Ajutor scripting"? Incearca sa faci comenzile si daca ak erori revino cu cosul sursa si erorile care le ai

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.