Search Results
I want this object and I as a developer looking forward to a properly working function. Changing the object just masking bug.
482
@UP Not working! This callback is bugged as f**k.
482
MOVIE https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot Return Values: 0 - Prevent the bullet from causing damage. Код: if(hittype == BULLET_HIT_TYPE_OBJECT && hitid == myobject) { ...
482
It's only example. I want to use this function for hiding players for other team. But, when player spectate other players - and in next round gonna respawn - this not working, second team see him.
314
This function doesn't work in short time after when players respawns. Code: Код: public OnPlayerSpawn(playerid) { foreach(new x : Player) { if(x == playerid) continue; ...
314
Very easily: Код: format(coordsstring, sizeof(coordsstring),"-----------------------------------------|%s Stats|----------------------------------------------",name); format(coordsstring, siz...
59
Код: UsePlayerPedAnims(); ?
115
It means: Код: if(number == 65521 && number == 65521 * 2 /* and go one, and go one */) It is a condition of valor number by 65521 Or it just: https://sampforum.blast.hk/showthread.php?tid...
117
If you have entered last checkpoint, this code is executed: Код: dmvcheckpointid[playerid] += 1; Now variable is 35! And there is a code: Код: if(id == 33) { SetPlayerRaceCheckpoint(play...
70
Variable before function is global variable. It's mean that it can be used everywhere. Variable in function is local variable. It's mean that it can be used only in this function. Example for global:...
117
Код: format(string, sizeof(string), "SELECT * FROM `ibay` ORDER BY `ibHeadline` DESC"); change to: Код: format(string, sizeof(string), "SELECT * FROM `ibay` ORDER BY `ibHeadline` ASC"); I have...
70
Hello. I've created timer: Код: new x = 2; new y = 3; new z = 4; new array[3] = {x, y, z}; defer GoTimer(array, sizeof(array)); and I have errors: Код: must be a constant expression; assume...
61
So map is protected against dicephering. You can't do anything I think.
160
You can use deamx but it's not good way :P
160
Commands are good. Change only: Код: if(Account[playerid][Level] > 3 && hide[playerid]) // Hided admin level 4 & 5 { new String[128]; format(String, sizeof(String), "{%06x}...
89
Something like this? Код: if(Account[playerid][Level] > 3 && hide[playerid]) // Admin level 4 & 5 { new String[128]; format(String, sizeof(String), "{%06x}%s: {F...
89
That is working? Wow Код: if(gPlayerLogged{playerid} == 0) // Maybe: gPlayerLogged[playerid] not {playerid}? { SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in."); ...
71
@UP, exactly. But.. I have done it by other way.. Код: public OnPlayerShootDynamicObject(playerid, ...) { if(objectid == myobject) { // recreate object } return 1;...
132
Hello, how can I protect object before the shoot? Код: new myobject = CreateObject(... public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(hittyp...
132
Hello. When we throw grenade and fast change weapon - grenade won't be throwned. But.. OnPlayerKeyStateChange of course is called (KEY_FIRE). It must be repaired.. Or is GTA:SA bug? FIX: Код:...
134