Search Results
You're acquiring the model of the vehicle before you are assigning the vehicle ID: Swap these two around to the following: Код: // ID savecar_id = GetPlayerVehicleID(playerid); // Model savec...
9
You miss spelt the callback: Код: forward WarnTimeKick(id); Код: SetTimerEx("WarnTimerKick", 500, false, "i", id);
6
Here, do this: Код: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_ADMIN_LEVEL6) { if(response == 0) { new string[1400]; strcat(...
11
This third parameter of cache_get_field_content is where to store the data. For instance: Код: new data[128]; cache_get_field_content(i, "name", data); You've also commented Код: new linie...
9
Change Code: #define GetVehicleDriveType(%0) (sampHandling[getVehicleMID(%0)][esh_driveType]) #define GetVehicleEngineType(%0) (sampHandling[getVehicleMID(%0)][esh_engineType]) to Code: #define G...
18
This is most likely due to outdated include files, ensure that all your includes are updated to 0.3.7 - OnPlayerGiveDamage was added in 0.3d.
14
Quote: Originally Posted by FelipeAndres I had tried that, but sometimes the position of the camera with that of the player varies a lot. Would you help me improve it? PHP код: ne...
10
You can compare GetPlayerCameraPos with GetPlayerPos. https://sampwiki.blast.hk/wiki/GetPlayerCameraPos https://sampwiki.blast.hk/wiki/GetPlayerPos
10
So, I've quickly created and tested out a filterscript which would perform something of this manner. Код: #include <a_samp> #include <a_http> new cmdstate = 1; forward OnServerComma...
27
Just checking inbetween the values would not work here, because there are values inbetween the ranges you have listed which aren't actually weapons. Код: new example = 57; if (example >= 0 &...
9
Use this colour "0xFFFFFF00" for transparent. Also, check out: https://sampwiki.blast.hk/wiki/Colors_List for an explanation of how colour transparency works.
10
Something of this nature should do the job: Код: forward RespawnTree (treeid); public RespawnTree (treeid) { //code to respawn tree// return 1; } When a tree gets cut down: Код: SetTimerE...
12
Quote: Originally Posted by fatlirmorina You sure this won't need a timer? Unless you want to check at intervals instead of shooting, no.
11
Let me know how this works out: Код: public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { new allowed; if (IsPlayerInAnyVehicle(playerid)) { new ve...
11
The time is frozen upon the usage of that function by default, unless other parts of your script change it. Alternatively, you may perhaps have TogglePlayerClock() enabled which would make the SetWor...
10
Quote: Originally Posted by Kruno88 Hmmmm,can anybody send me an example?I can't get it to work,.... You can also assign a timer to a callback which increments a variable by one every s...
31
Quote: Originally Posted by Sanady And also there is problem with adding vehicles which are included in package, because I am using maps which are mapped in MTA, and it will make problems ...
70
Quote: Originally Posted by RathTheBeast So what now? Well, as stated by the wiki; you can detect weapons upon the OnPlayerUpdate callback instead and disable them through there. So, t...
9
Well, it is really linked with the type of game-mode you are running. Like yourself, I am also running a TDM server and I am using the default vehicle positions which are within the original SA:MP sc...
70