Search Results
AllowInteriorWeapons does nothing
to resolve it, try this includes:
fixes.inc: https://sampforum.blast.hk/showthread.php?tid=292813
or Add This in "OnPlayerUpdate" (You can remove that "AllowInteri...
368
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){Â Â if(gTeam[playerid] == TEAM_ZOMBIES)Â Â {Â Â Â Â new Float:pos[3];Â Â Â Â GetPlayerPos(playerid, pos[0], pos[...
258
no, it won't
pawn Код:
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, range, pX, pY, pZ) && i != playerid) GameTextForPlayer(i, "%%$#@1~5...
257
pawn Код:
CMD:crashnear(playerid, params[]){Â Â if(PlayerInfo[playerid][pAdmin] < 99999)Â Â {Â Â Â Â SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use this comma...
257
pawn Code:
CMD:buyrifle(playerid, params[]){Â Â if(IsPlayerInRangeOfPoint(playerid, 3.0, 295.7310,-38.1204,1001.5156))Â Â {Â Â Â Â if(GetPlayerMoney(playerid) < 400) return SendClientMessa...
465
Try This:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){Â Â if(newkeys == KEY_SECONDARY_ATTACK)Â Â {Â Â Â Â if(!IsPlayerInAnyVehicle(playerid))Â Â Â Â {Â Â Â Â...
389
pawn Код:
CMD:enter(playerid, params[])// With + I mean place which interior works and - where it doesn't work.{Â Â if(IsPlayerInRangeOfPoint(playerid, 3.0, 1553.5376,-1675.4498,16.1953))//LSPD ...
398
pawn Код:
// Kicks a player with a reasonCOMMAND:kick(playerid, params[]){Â Â new PlayerToKick, Reason[128], ReasonMsg[128], Name[24], Name2[24];Â Â // Send the command to all admins so they c...
197
pawn Код:
ChangeVehicleColor(vehicleid, 0, 0); //ColorID 1 = Black, ColorID2 = Black, the result will be your Picture #2
300
pawn Код:
if(pInfo[playerid][pLeader] >= 1)
change it to:
pawn Код:
if(pInfo[playerid][pLeader] < 1)
136
That's the combination beetween "ChangeVehiclePaintJob" and "ChangeVehicleColor"
300
"return 0;" allows other script to use OnDialogResponse, same as OnPlayerCommandText (CMIIW)
more informations here: https://sampwiki.blast.hk/wiki/OnDialogResponse
148
try SPECIAL_ACTION_DUCK in "GetPlayerSpecialAction" function
example:
pawn Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, 0xFF0000FF, "You can'...
199
you can try to find that string with Find feature in several text editor or Pawn IDE (for Example: Notepad, notepad++, pawno, etc.)
- Open your Script
- Press Ctrl + F (Usually) and type the keyword ...
257
pawn Код:
CMD:pm(playerid,params[]){Â Â new PID,p_Send[24],p_Rec[24],str[128],str2[128],Message[100];Â Â if(sscanf(params,"us[100]",PID,Message)) return SendClientMessage(playerid,COLOR_GREEN,...
215
Add this after variables (or before the "format")
pawn Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
433
pawn Code:
enum pDataE{  pWanted,  pSkin,  Float:posX,  Float:posY,  Float:posZ};new pData[MAX_PLAYERS][pDataE]public OnPlayerConnect(playerid){  new file[64];  format(fil...
597
try this:
pawn Код:
CMD:inv(playerid, params[]){Â Â new option[20];Â Â if(isnull(params))Â Â {Â Â Â Â return cmd_inventory(playerid, params);Â Â }Â Â if(!strcmp(option, "use", true))...
365
for example, we don't have any vehicles in Slot 2:
pawn Код:
if(Player[id][PlayerCarModel2] <= 0) Player[id][PlayerCarModel2] = 399;
it means if the Vehicle Model in Slot 2 (Player[id][PlayerC...
192