Search Results
Zkus toto: Code: public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID) { if(weaponid == 0 && AFK[playerid])...
584
Ahoj, pouћij public "OnPlayerTakeDamage" vice zde: https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage Jednoduљe zkontroluj jestli je afk a pak mu nastav zpět ћivoty, kterй mб mнt. Hi, try using...
584
Quote: Originally Posted by Eoussama Yeah, that's definitely better, but you can't start a variable name with numbers. small mistake, i forgot about this condition
127
There is a better way: Код: new TextLabels = 0; // on the top of your script // somewhere in your script Text3D:Create3DTextLabelEx(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, ...
127
https://sampforum.blast.hk/showthread.php?tid=257849 https://sampforum.blast.hk/showthread.php?tid=543257 https://sampforum.blast.hk/showthread.php?tid=146093
238
Try this: Код: new bool:IsLoggedIn[MAX_PLAYERS]; forward AutoUnjail(); //OnGameModeInit SetTimer("AutoUnjail", 1020, 1); //OnPlayerDissconnect IsLoggedIn[playerid] = false; // when player suc...
68
You have variable only for Float numbers: "new Float:Small Houses" so you can't use interior ID in that variable, because it is integer. Try something like this: Код: enum SmallHouses_Info { ...
89
Try this: "MEDIC" - "CPR" "PED" - "KO_shot_face" "PED" - "KO_shot_front" "PED" - "KO_shot_stom" "PED" - "KO_skid_back" "PED" - "KO_skid_front" "PED" - "KO_spin_L" "PED" - "KO_spin_R"
75
Код: new Float:Dueler_Pos[][] = { {12.0, 12.0, 12.0}, // Line ID 0 - Pos X , Pos Y, Pos Z {11.0, 11.0, 11.0}, // Line ID 1 - Pos X , Pos Y, Pos Z {10.0, 10.0, 10.0} // Line ID 2 - Pos ...
73
Very simple: https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle
103
delete line with: TextDrawShowForAll(helpingtext); Add this to public OnPlayerConnect or OnPlayerSpawn: TextDrawShowForPlayer(playerid, helpingtext); EDIT: Flamehaze7 is right, check that you are c...
75
Quote: Originally Posted by iSteve if(oInfo[playerid][i][matindex[0]] == 0) to if(oInfo[playerid][i][matindex[0] == 0) You are close, but u miss one "]" this is correct: Код...
124
Try to do it like this if u want to repair your code: EDIT: otherwise, do what Sew_Sumi writes, he is right. Код: if(strcmp(AccData[playerid][pRank], "No Rank", true)) { if(0 <= GetPlayer...
134
These conditions that you show to us are right. Problem is somewhere else (somewhere on the lines under these conditions.) Read this: http://forum.sa-mp.com/showpost.php?...86&postcount=3
88
Try this: Код: if(GetPlayerScore(playerid) > 12000) { if(GetPlayerTeam(playerid) == 2 || GetPlayerTeam(playerid) == 9) { TextDrawShowForPlayer(playerid, KingPin); } else {...
69
Quote: Originally Posted by Locky_ Have the existing bugs of version 0.3.8 RC been fixed? - Non-functional class system with new skins. - Actors performing animation when you get close wi...
59,063
You can try to check the weapon ID after the KEY_FIRE is released. (It should work.) Something like this: Код: #define RELEASED(%0) \ (((newkeys & (%0)) != (%0)) && ((oldkeys & ...
157
Quote: Originally Posted by ISmokezU PHP код: if(pInfo[target][Admin] >= 1) return SendClientMessage(playerid, -1, "Player is already an admin");  if I under...
170
Somewhere in your GM, you don't set correctly your variable for wanted level (Player[playerid][pWantedLevel]), because i simple found your 5s timer and i saw, that you are setting wanted level to 0 if...
127
Quote: Originally Posted by ZaikerH I can help you. Just give me a few minutes, and then I'll send the files to you in private. Just a question. Do you need it for 0.3.8 or 0.3.7? If it i...
113