-
Posts
53 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by ProAeXel
-
-
Am o problema cu scrptul de pills,nu ma lasa sa folosesc pills ,imi tot pune sa astept 300 de secunde .
Mai jos aveti scriptul comenzii,am incercat sa o rezolv ,dar fara succes,nu imi dau seama ce poate avea.
if(strcmp(cmdtext, "/usepills", true) == 0){if(IsPlayerConnected(playerid)){if(PlayerBoxing[playerid] > 0){SendClientMessage(playerid, COLOR_WHITE, "Cant use Pills while you are fighting");return 1;}if(PlayerInfo[playerid][pPills] > 0){if(PlayerInfo[playerid][pPastile] == 0){GetPlayerName(playerid, sendername, sizeof(sendername));SetPlayerHealth(playerid, 100);SendClientMessage(playerid, COLOR_WHITE, "1 Pill used");format(string, sizeof(string), "%s took a pills a very good", sendername);ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);PlayerInfo[playerid][pPills] -= 1;PlayerInfo[playerid][pPastile] = 300;ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);if(STDPlayer[playerid]==1){STDPlayer[playerid] = 0;SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are no longer infected with a STD anymore because of the Drugs");}else if(STDPlayer[playerid]==2){STDPlayer[playerid] = 1;SendClientMessage(playerid, COLOR_LIGHTBLUE, "You lowered the STD to Chlamydia because of the Drugs");}else if(STDPlayer[playerid]==3){STDPlayer[playerid] = 2;SendClientMessage(playerid, COLOR_LIGHTBLUE, "You lowered the STD to Gonorrhea because of the Drugs");}} else SendClientMessage(playerid, COLOR_WHITE, "Please wait 300 seconds to consume pills again");}else{SendClientMessage(playerid, COLOR_WHITE, "You dont have any Pills left");}} // Not Connectedreturn 1;}PS: Nu am erori la compilare -
Salut am o problema la sistemul de case .Dupa ce am adaugat la public OnGameModeInit linia DisableInteriorsEnterExits(),nu mai pot iesi din case deoarece atunci cand intram in ele cu "/enter" ,la iesirea aveau un yellow mark cu anim ,iar acum nu il mai au dupa adaugarea acelei linii.Imi poate explica cineva ce trebuie sa fac pentru a iesi din casa prin comanda "/exit" ?
O mica mana de ajutor.
in Arhivă probleme
Posted
Salut,daca cineva cu niste timp liber poate da o mana de ajutor in legatura cu niste scripturi as fi recunoscator.Reply sau PM va rog:)