Search Results
Isn't the camera actually colliding with the player inside the vehicle?
309
pawn Код: if(sscanf(params, "udS(No reason)[100]",TargetID,wl,reason)) Capital sscanf specifiers will allow you to set a default value, if there was no data passed. Full code: pawn Код: CMD:w...
95
Have you tried setting a blank text (space: " ") instead? This way you won't even have to re-create it all over again, when OnPlayerUpdate ain't getting called. Edit: Been a long time...hello
83
I think OP wants to suggest something like this: I'd call it a 3D Textdraw, refering to the text(draw) above the dollar pickup. And yes, something like it would be very useful, plus, you should be ...
5,998
As far as I see, you are using SendRconCommand just like printf. Well, that's not the way it's meant to be used. I'd suggest to format a string, then pass it as the argument of SendRconCommand: pawn ...
68
I have been thinking about this alot lately and it does not seem a bad idea: With the current SA:MP versions, using (Player)TextDrawSetString will take effect immediately, while the other textdraw se...
32,601
pawn Код: if(!strcmp(cmd, "/Kill", true)) return SetPlayerHealth(playerid,0); if(!IsPlayerXAdmin(playerid)){    if(InMini[playerid] == 1 || InWar[playerid] == 1 || InBoom[playerid] == 1 || InWea...
168
pawn Код: dcmd(infect, 6, cmdtext); Is the second parameter 6? Any other length value returns the default unknown command message AFAIK.
121
OnPlayerRequestSpawn maybe?
203
Where have you placed this code? If it's not under OnPlayerConnect, you'll have to place it there.
108
That's what I created for my GM, works as a charm: pawn Код: stock SendSplittedMessage(playerid, color, txt[]){    new len = strlen(txt), txt2[128];    if(len > 99)    {        for(new...
88
pawn Код: GiftBox[rand][label2] = CreateDynamic3DTextLabel(slova,0xFFFFFFFF,GiftBox[rand][Gift][0],GiftBox[rand][Gift][1],GiftBox[rand][Gift][2]+0.0,8.0);
58
pawn Код: case REGISTER_DIALOG :{    if(!response) return KickEx(playerid);    if(strlen(inputtext) < MIN_PASS_LEN || strlen(inputtext) > MAX_PASS_LEN || strlen(inputtext) == 0)    { ...
49
Put this line: pawn Код: if(VehicleID != 425 && VehicleID != 520 && VehicleID != 432 && VehicleID != 447 && VehicleID != 464 && VehicleID != 469) { before Ge...
63
pawn Код: public OnVehicleStreamIn(vehicleid, forplayerid){    if(PlayerInfo[forplayerid][LockedCar] == 1 || PlayerInfo[forplayerid][LockedCar2] == 1) LockCar(vehicleid);    else UnLockCar(veh...
88
if(GetPlayerMoney(playerid) >= amount)
62
Quote: Originally Posted by ****** No, I mean spinning the car. So instead of drifting you end up going backwards (like a reverse J-turn). I didn't know what J-turn is, but after googl...
68,120
That is just a black box with transparency. Can be easily done by lowering the alpha value. pawn Код: TextDrawBoxColor(textdrawid, 0x000000AA); // AA is the alpha value, if it's 00 is fully transp...
141
pawn Код: new Float:RandomCP[][5] = The first [] is the amount of checkpoints (If without number, the script calculates the checkpoints itself), whereas the second [] is the amount of params for e...
84
pawn Код: SetPlayerCheckpoint(i, RandomCP[rand][0], RandomCP[rand][1], RandomCP[rand][2], RandomCP[rand][3]); Edit: Also, your timer is wrong. pawn Код: SetTimer("RandomCheckPoint", 20000, tru...
84