16.07.2014, 10:51
[Plugin] YSF - kurta999's version
16.07.2014, 12:36
16.07.2014, 19:18
Quote:
I asked where .. they told me to install something, but I did not understand what I said this is related ..
There is a situation you build me the function? - TogglePlayerDriveOnWater |
Kurta999, is this function possible?:
pawn Code:
native SetPlayerInteriorForPlayer(playerid, forplayerid, interior);
16.07.2014, 20:37
add full keyboard detection:
pawn Code:
public OnPlayerPressKey(playerid, key); // key = 'a' / 'b' / 'c', etc - only 1 key per call back
public OnPlayerReleaseKey(playerid, key); // key = 'a' / 'b' / 'c', etc - only 1 key per call back
16.07.2014, 21:04
Please, stop spamming about keyboard detection in every plugin thread.
It's not going to happen.
It's not going to happen.
16.07.2014, 21:48
17.07.2014, 13:37
17.07.2014, 13:49
I don't think there would be a huge speed difference between using a plugin, or PAWN for it. I use y_va, which does that job (SendClientMessage with formatted parameters).
17.07.2014, 16:50
17.07.2014, 18:33
Quote:
How about:
pawn Code:
|
Code:
#define SendClientMessagef(%0,%1,%2) (format(msg_Messger,sizeof(msg_Messger),%2),SendClientMessage(%0,%1,msg_Messger))
Code:
SendClientMessagef(playerid, 0xffcc12, "Hello World!"); SendClientMessagef(playerid, 0xff12cc, "Hello %s!", "World");
17.07.2014, 18:41
Quote:
How about:
pawn Code:
|
pawn Code:
#define BYTES_PER_CELL 4
stock SendClientMessageFormatted(playerid, color, fstring[], {Float, _}:...)
{
static const STATIC_ARGS = 3;
new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
if(n)
{
new message[144],arg_start,arg_end;
#emit CONST.alt fstring
#emit LCTRL 5
#emit ADD
#emit STOR.S.pri arg_start
#emit LOAD.S.alt n
#emit ADD
#emit STOR.S.pri arg_end
do
{
#emit LOAD.I
#emit PUSH.pri
arg_end -= BYTES_PER_CELL;
#emit LOAD.S.pri arg_end
}
while(arg_end > arg_start);
#emit PUSH.S fstring
#emit PUSH.C 144
#emit PUSH.ADR message
n += BYTES_PER_CELL * 3;
#emit PUSH.S n
#emit SYSREQ.C format
n += BYTES_PER_CELL;
#emit LCTRL 4
#emit LOAD.S.alt n
#emit ADD
#emit SCTRL 4
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, message);
} else {
return SendClientMessage(playerid, color, message);
}
} else {
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, fstring);
} else {
return SendClientMessage(playerid, color, fstring);
}
}
}
that is fast and works well.
17.07.2014, 20:17
pawn Code:
stock SendClientMessageEx(playerid, color, const message[], va_args<>)
{
new szString[145];
va_format(szString, sizeof(szString), message, va_start<3>);
SendClientMessage(playerid, color, szString);
}
17.07.2014, 22:29
You found secret show/hide player functions or you implemented them?
It's awesome!
It's awesome!
18.07.2014, 00:15
That's not secret, I just have a minimal knowledge how things work in samp.
18.07.2014, 11:22
18.07.2014, 13:03
18.07.2014, 13:37
18.07.2014, 13:47
18.07.2014, 13:48
Cool stuff i like thing with the gravity!
18.07.2014, 14:23
« Next Oldest | Next Newest »
Users browsing this thread: 14 Guest(s)