Jump to content
  • 0

pet help pls


ManoleAlex

Question

7 answers to this question

Recommended Posts

  • 0

Și...care ar fi problema ? Ca doar așa nu cred ca te ajuta cineva.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

  • 0
function Checkstatuspet(playerid) {
    SCMEx(playerid, COLOR_YELLOW, "* Nivelul animalului tau de companie este: {FF1302}%d.{FFFFFF}",PlayerInfo[playerid][pPetLevel]);
    SCMEx(playerid, COLOR_YELLOW, "Pentru al avansa trebuie sa detii 120 pet points, tu ai: {FF1302}%d.{FFFFFF}", PlayerInfo[playerid][pPetPoints]);
    SCM(playerid, COLOR_YELLOW, "Daca pet-ul tau are level mai mic de 3 vei primi doar +1RP.");
    SCM(playerid, COLOR_YELLOW, "Daca pet-ul tau are level mai mare de 3 vei primi +2RP si o suma de bani.");
    return 1;
}

 

Link to comment
Share on other sites

  • 0
La 29.03.2019 la 21:35, ManoleAlex a spus:

folosesc YCMD


YCMD:petmenu(playerid, params[], help) {
    if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0);
    DeelayCommand[playerid][0] = 3;
    new string[128], string2[128];
    if(PlayerInfo[playerid][pPet] == 0) return SCM(playerid, -1, "{cc0e0e}(Pet){FFFFFF}: Nu detii un pet!");
    if(PlayerInfo[playerid][pPetStatus] == 0) format(string, sizeof(string),"Status\t{ff0000}Adormit\nNume pet\t{26B309}%s\nBeneficii pet\nCreste pet\t%d/120 pet points",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetPoints]);
    else format(string, sizeof(string),"Status\t{1AAB07}Trezit\nNume pet\t{26B309}%s\nBeneficii pet\nCreste pet\t%d/120 pet points",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetPoints]);
    strcat(string2, string);
    ShowPlayerDialog(playerid, DIALOG_PET, DIALOG_STYLE_TABLIST, "Pet Menu", string2, "Select", "Cancel");
    return 1;
}
function Checkstatuspet(playerid) {
    SCMEx(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Nivelul animalului tau de companie este: {FF1302}%d.{FFFFFF}",PlayerInfo[playerid][pPetLevel]);
    SCMEx(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Pentru al avansa trebuie sa detii 120 pet points, tu ai: {FF1302}%d.{FFFFFF}", PlayerInfo[playerid][pPetPoints]);
    SCM(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Daca pet-ul tau are level mai mic de 3 vei primi doar +1RP.");
    SCM(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Daca pet-ul tau are level mai mare de 3 vei primi +2RP si o suma de bani.");
    return 1;
}

function RemovePet(playerid) {
    PlayerInfo[playerid][pPetStatus] = 0;
    DestroyDynamic3DTextLabel(Pet[playerid]);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 6)) RemovePlayerAttachedObject(playerid, 6);
    Update(playerid, pPetStatusx);
    return 1;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.