Search Results
pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(pla...
143
You can use player variable to send message to admins only 1 time for 15 sec.
pawn Код:
new bool:Sended[MAX_PLAYERS];YourFunctionToCheckIfPlayerHasSpeedHack(){if(Sended[cheaterid] != true){SendCl...
190
pawn Код:
CMD:stats(playerid,params[]){if(IsPlayerConnected(playerid)){new string[500];format(string,sizeof(string),"Money: %d | Levels: %d | Admin: %d | ",PlayerInfo[playerid][pMoney],PlayerInfo[...
176
https://sampwiki.blast.hk/wiki/RemovePlayerAttachedObject
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strmp(cmdtext, "/remove", true)) // Remove Attached Objects
{
f...
119
Hello, I made vehicle attachment, I enter some vehicle, attachment shows up but after 1 sec is removed.
Somebody have experience with this?
Thx
Код:
public OnPlayerEnterVehicle(playerid, vehiclei...
91
pawn Код:
stock GetPlayerKDR(playerid){ new kills = dini_Int(pFile(playerid), "Kills"); new deaths = dini_Int(pFile(playerid), "Deaths"); new result; result = kills / deaths; ...
165
This should work.
pawn Код:
CMD:admins(playerid,params[]){ new Count = 0; new n[MAX_PLAYER_NAME]; new string[1000];// SendClientMessage(playerid, 0x00FF00FF, "__________|Admins...
126
Try forward OnPlayerShootPlayer(shooter, target, Float:damage); .
327
You can try replace function TimpScurs(playerid) by forward TimpScurs(playerid);
public TimpScurs(playerid)
{
...
187
You can use stock GetClosestPlayer(playerid);
Код:
stock GetClosestPlayer(playerid)
{
new Float:dis,Float:dis2,player;
player = -1;
dis = 99999.99;
foreach(Player,x)
{
...
293
Increase object draw distance.
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float: DrawDistance);
133
pawn Код:
CMD:sms(playerid, params[]){ new text[128], number; if(sscanf(params, "iz", number, text)) return SendClientMessage(playerid, -1, "USAGE: /SMS [Number] [Text]"); else ...
351
You miss bracket.
pawn Код:
public OnPlayerRequestClass(playerid, classid){ switch(classid) { case 0: { GameTextForPlayer(playerid, "~g~~h~~h~Grove Street F...
199
pawn Код:
public OnPlayerText(playerid, text[]){ if(stringContainsIP(text)) { Kick(playerid); } return 0;}stock stringContainsIP(string[]){ ne...
150
pawn Код:
new SpawnCar[2];SpawnCar[0] = CreateVehicle...SpawnCar[1] = CreateVehicle...for(new i; i<sizeof(SpawnCar); i++){if(SpawnCar[i] ...}
106
pawn Code:
// This is a comment// uncomment the line below if you want to write a filterscript#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPTpublic OnFilterScriptInit(){print(" Bl...
194
Create a new variable for player:
Quote:
new CP[MAX_PLAYERS];
This variable will find, how CP will be like next.
Write:
Quote:
CP[playerid] = 0;
SetPlayerCheckpoint(p...
304
Just copy the code, which is on the bottom of pastebin page.
244
You don't need make commands in a filterscripts.
You can install other pawn editor with higher memory.
You can try this:
http://www.solidfiles.com/d/oBJj/samp_editor.rar
172