Script của Mom

Đăng tại chuyên mục Móm Handsome

avatar
Quản trị viên
Chèn map edit
Code:

#include <a_samp>

#if !defined isnull
#define isnull(%1) \
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif

public OnFilterScriptInit()
{
CreateObject(19538, 1134.83789, -1322.06055, 12.61610,   0.00000, 0.00000, 359.79666);
CreateObject(19545, 1124.45337, -1357.67358, 12.59680,   0.00000, 0.00000, 0.00000);
CreateObject(19545, 1109.46387, -1357.58447, 12.59680,   0.00000, 0.00000, 0.00000);
CreateObject(19545, 1094.46631, -1357.58496, 12.59680,   0.00000, 0.00000, 0.00000);
CreateObject(19545, 1079.75562, -1357.51245, 12.59180,   0.00000, 0.00000, 359.38480);
CreateObject(19545, 1139.44690, -1357.75281, 12.59680,   0.00000, 0.00000, 0.00000);
CreateObject(19545, 1154.37708, -1358.04175, 12.59680,   0.00000, 0.00000, 0.00000);
CreateObject(19545, 1094.46631, -1357.58496, 12.59680,   0.00000, 0.00000, 0.00000);
CreateObject(19545, 1094.46631, -1357.58496, 12.59680,   0.00000, 0.00000, 0.00000);
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 1529, 1098.8125, -1292.5469, 17.1406, 0.25);
RemoveBuildingForPlayer(playerid, 5931, 1114.3125, -1348.1016, 17.9844, 0.25);
RemoveBuildingForPlayer(playerid, 5934, 1076.7109, -1358.0938, 15.4453, 0.25);
RemoveBuildingForPlayer(playerid, 5935, 1120.1563, -1303.4531, 18.5703, 0.25);
RemoveBuildingForPlayer(playerid, 5936, 1090.0547, -1310.5313, 17.5469, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1085.7031, -1361.0234, 13.2656, 0.25);
RemoveBuildingForPlayer(playerid, 5731, 1076.7109, -1358.0938, 15.4453, 0.25);
RemoveBuildingForPlayer(playerid, 5788, 1080.9844, -1305.5234, 16.3594, 0.25);
RemoveBuildingForPlayer(playerid, 5787, 1090.0547, -1310.5313, 17.5469, 0.25);
RemoveBuildingForPlayer(playerid, 5810, 1114.3125, -1348.1016, 17.9844, 0.25);
RemoveBuildingForPlayer(playerid, 5993, 1110.8984, -1328.8125, 13.8516, 0.25);
RemoveBuildingForPlayer(playerid, 5811, 1131.1953, -1380.4219, 17.0703, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1148.6797, -1385.1875, 13.2656, 0.25);
RemoveBuildingForPlayer(playerid, 5737, 1120.1563, -1303.4531, 18.5703, 0.25);
return 1;
}
on 24.09.18 1:17#1
Báo cáo
avatar
Quản trị viên
Khu an toàn
Code:
//SAFE ZONE SIMPLE

#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#define MAX_SZ 100 // MAX SAFE ZONE
enum szInfo
{
Float:szPosX,
Float:szPosY,
Float:szPosZ,
szSize,
szPickupID,
Text3D: szTextID,
};
new SafeZoneInfo[MAX_SZ][szInfo];
stock SaveSafeZones()
{
new
szFileStr[1024],
File: fHandle = fopen("SafeZones.cfg", io_write);

for(new iIndex; iIndex < MAX_SZ; iIndex++)
{
format(szFileStr, sizeof(szFileStr), "%f|%f|%f|%d|%d\r\n",
SafeZoneInfo[iIndex][szPosX],
SafeZoneInfo[iIndex][szPosY],
SafeZoneInfo[iIndex][szPosZ],
SafeZoneInfo[iIndex][szSize],
SafeZoneInfo[iIndex][szPickupID]);
fwrite(fHandle, szFileStr);
}
return fclose(fHandle);
}

stock LoadSafeZones()
{
if(!fexist("SafeZones.cfg")) return 1;

new string[128],
szFileStr[128],
File: iFileHandle = fopen("SafeZones.cfg", io_read),
iIndex;

while(iIndex < sizeof(SafeZoneInfo) && fread(iFileHandle, szFileStr)) {
sscanf(szFileStr, "p<|>fffii",
SafeZoneInfo[iIndex][szPosX],
SafeZoneInfo[iIndex][szPosY],
SafeZoneInfo[iIndex][szPosZ],
SafeZoneInfo[iIndex][szSize],
SafeZoneInfo[iIndex][szPickupID]
);

format(string, sizeof(string), "{FFFFFF}Safe Zone(ID: %d)\n{24D12F}%d Meters\n{DB8B35}Non-Kill",iIndex,SafeZoneInfo[iIndex][szSize]);

if(SafeZoneInfo[iIndex][szPosX] != 0.0)
{
SafeZoneInfo[iIndex][szPickupID] = CreateDynamicPickup(1254, 23, SafeZoneInfo[iIndex][szPosX], SafeZoneInfo[iIndex][szPosY], SafeZoneInfo[iIndex][szPosZ]);
SafeZoneInfo[iIndex][szTextID] = CreateDynamic3DTextLabel(string, -1, SafeZoneInfo[iIndex][szPosX], SafeZoneInfo[iIndex][szPosY], SafeZoneInfo[iIndex][szPosZ]+0.5,30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 30.0);
}
++iIndex;
}
return fclose(iFileHandle);
}
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Safe Zone");
print("--------------------------------------\n");
LoadSafeZones();
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
new Float:php;
for(new Sz; Sz < MAX_SZ; Sz++)
{
if(IsPlayerInRangeOfPoint(playerid, SafeZoneInfo[Sz][szSize], SafeZoneInfo[Sz][szPosX], SafeZoneInfo[Sz][szPosY], SafeZoneInfo[Sz][szPosZ]))
{// If Player In Safe Zone
if(!IsPlayerAdmin(playerid))
{
GameTextForPlayer(playerid, "~r~Unauthorized Attack", 5000, 3);
TogglePlayerControllable(playerid, 0);
SetTimer("LoadPlayer", 5000, false);
GetPlayerHealth(playerid,php);
SetPlayerHealth(playerid,php-amount*2);

}
}
if(!IsPlayerInRangeOfPoint(playerid, SafeZoneInfo[Sz][szSize], SafeZoneInfo[Sz][szPosX], SafeZoneInfo[Sz][szPosY], SafeZoneInfo[Sz][szPosZ]))
{//if Player outside safe zone and damagedid inside safe zone
if(IsPlayerInRangeOfPoint(damagedid, SafeZoneInfo[Sz][szSize], SafeZoneInfo[Sz][szPosX], SafeZoneInfo[Sz][szPosY], SafeZoneInfo[Sz][szPosZ]))
{
if(!IsPlayerAdmin(playerid))
{
GameTextForPlayer(playerid, "~r~Unauthorized Attack", 5000, 3);
TogglePlayerControllable(playerid, 0);
SetTimer("LoadPlayer", 5000, false);
GetPlayerHealth(playerid,php);
SetPlayerHealth(playerid,php-70);
}
}
}
}
return 1;
}
forward LoadPlayer(playerid);
public LoadPlayer(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}
CMD:gotosz(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new housenum;
if(sscanf(params, "d", housenum)) return SendClientMessage(playerid, -1, "USAGE: /gotosz [ID Khu An Toan]");

SetPlayerPos(playerid,SafeZoneInfo[housenum][szPosX],SafeZoneInfo[housenum][szPosY],SafeZoneInfo[housenum][szPosZ]);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:szedit(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "You can not use this commands`.");
return 1;
}

new string[128], choice[32], szid, amount;
if(sscanf(params, "s[32]dd", choice, szid, amount))
{
SendClientMessage(playerid, -1, "USAGE: /szedit [name] [SafeZone ID] [Amount]");
SendClientMessage(playerid, -1, "Name: location, size");
return 1;
}
if(strcmp(choice, "location", true) == 0)
{
GetPlayerPos(playerid, SafeZoneInfo[szid][szPosX], SafeZoneInfo[szid][szPosY], SafeZoneInfo[szid][szPosZ]);
SendClientMessage( playerid, -1, "You have edit location Safe Zone!" );
DestroyPickup(SafeZoneInfo[szid][szPickupID]);
SaveSafeZones();


DestroyPickup(SafeZoneInfo[szid][szPickupID]);
DestroyDynamic3DTextLabel(SafeZoneInfo[szid][szTextID]);
format(string, sizeof(string), "{FFFFFF}Safe Zone(ID: %d)\n{24D12F}%d Meters\n{DB8B35}Non-Kill",szid,SafeZoneInfo[szid][szSize]);
SafeZoneInfo[szid][szTextID] = CreateDynamic3DTextLabel( string, -1, SafeZoneInfo[szid][szPosX], SafeZoneInfo[szid][szPosY], SafeZoneInfo[szid][szPosZ]+0.5,10.0, .testlos = 1, .streamdistance = 10.0);
SafeZoneInfo[szid][szPickupID] = CreatePickup(1254, 23, SafeZoneInfo[szid][szPosX], SafeZoneInfo[szid][szPosY], SafeZoneInfo[szid][szPosZ]);
}
else if(strcmp(choice, "size", true) == 0)
{
SafeZoneInfo[szid][szSize] = amount;
SendClientMessage( playerid, -1, "You have edit size Safe Zone!" );
SaveSafeZones();

DestroyDynamic3DTextLabel(SafeZoneInfo[szid][szTextID]);
format(string, sizeof(string), "{FFFFFF}Safe Zone(ID: %d)\n{24D12F}%d Meters\n{DB8B35}Non-Kill",szid,SafeZoneInfo[szid][szSize]);
SafeZoneInfo[szid][szTextID] = CreateDynamic3DTextLabel( string, -1, SafeZoneInfo[szid][szPosX], SafeZoneInfo[szid][szPosY], SafeZoneInfo[szid][szPosZ]+0.5,10.0, .testlos = 1, .streamdistance = 10.0);
}
SaveSafeZones();
return 1;
}
CMD:szdelete(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -2, "You can not use this commands`!");
return 1;
}
new h, string[128];
if(sscanf(params,"d",h)) return SendClientMessage(playerid, -1,"USAGE: /szdelete [SafeZone ID]");
if(!IsValidDynamicPickup(SafeZoneInfo[h][szPickupID])) return SendClientMessage(playerid, -1,"Wrong ID Safe Zone.");
SafeZoneInfo[h][szPosX] = 0;
SafeZoneInfo[h][szPosY] = 0;
SafeZoneInfo[h][szPosZ] = 0;
DestroyDynamicPickup(SafeZoneInfo[h][szPickupID]);
DestroyDynamic3DTextLabel(SafeZoneInfo[h][szTextID]);
SaveSafeZones();
format(string, sizeof(string), "You have delete Safe Zone (ID %d).", h);
SendClientMessage(playerid, -1, string);
return 1;
}

public OnPlayerUpdate(playerid)
{
for(new Sz; Sz < MAX_SZ; Sz++)
{
if(IsPlayerInRangeOfPoint(playerid, SafeZoneInfo[Sz][szSize], SafeZoneInfo[Sz][szPosX], SafeZoneInfo[Sz][szPosY], SafeZoneInfo[Sz][szPosZ]))
{
SetPlayerArmedWeapon(playerid, 0);
}
}
return 1;
}
on 24.09.18 13:22#2
Báo cáo
avatar
Quản trị viên
Bảo trì máy chủ
Code:
CMD:baotrimaychu(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 99999) {
        SendClientMessageEx(playerid, COLOR_GRAD2, "Ban khong duoc phep su dung lenh nay.");
        return 1;
    }

    SetTimer( "Maintenance", 30000, false );
    SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* May chu se bao tri trong vong 30 giay nua...");
   SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* Hay o lai cho den khi ban bi kick bao tri may chu de hoan tat luu tru tai khoan...");
    foreach(new i: Player) {
        GameTextForPlayer(i, "~y~Bao Tri may chu", 5000, 6);
    }
    return 1;
}
on 24.09.18 23:26#3
Báo cáo
avatar
Quản trị viên
Kênh chat ooc /g cho fac
Code:
CMD:g(playerid, params[])
{
    new
        iGroupID = PlayerInfo[playerid][pMember],
        iRank = PlayerInfo[playerid][pRank];
 
    if (0 <= iGroupID < MAX_GROUPS)
    {
        if (iRank >= arrGroupData[iGroupID][g_iRadioAccess])
        {
                if(!isnull(params))
                {
                    new string[128], employer[GROUP_MAX_NAME_LEN], rank[GROUP_MAX_RANK_LEN], division[GROUP_MAX_DIV_LEN];
                    GetPlayerGroupInfo(playerid, rank, division, employer);
                    format(string, sizeof(string), "** (( %s (%s) %s: %s )) **", rank, division, GetPlayerNameEx(playerid), params);
                    foreach(new i: Player)
                    {
                        if(PlayerInfo[i][pMember] == iGroupID && iRank >= arrGroupData[iGroupID][g_iRadioAccess])
                        {
                            SendClientMessageEx(i, arrGroupData[iGroupID][g_hRadioColour] * 256 + 255, string);
                        }
                    }
                }
                else return SendClientMessageEx(playerid, COLOR_GREY, "SU DUNG: (/g)roup [radio OOC chat]");
        }
        else return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co quyen truy cap tan so radio nay.");
    }
    else return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong o trong to chuc.");
    return 1;
}
on 24.09.18 23:26#4
Báo cáo
avatar
Quản trị viên
Anti MG
Code:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_RED 0xAA3333FF
public OnPlayerText(playerid, text[])
{
   if(strfind(text, "=]", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":]", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ";]", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":D", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "==", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "=.=", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "-.-", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "-,-", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":V", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":P", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "=))", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":))", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":)", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "<3", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "^^", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "^-^", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "^_^", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":3", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ";)", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":(", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "(y)", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "-_-", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ">:o", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":/", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "O:)", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "3:)", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ">.<", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "8-)", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":'(", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ":o", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "@@", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "~~", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "gta", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "vn", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "onl", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "offline", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "id", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "admin", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "hack", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "cleo", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "bug", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "acc", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "level", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "lv", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "F8", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "forum", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "make admin", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "facebook", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "fb", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "link", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "sml", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "cc", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "cl", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "loz", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "lol", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "wtf", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "dkm", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "dcm", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "dmm", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "vl", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "vcl", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "vc", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "vcc", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "ncc", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "qq", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "hk", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "ko", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "dc", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "dx", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "afk", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "vv", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "zz", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "roleplay", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "RP", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "OOC", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "MG", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "PG", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "CR2", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "RM", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "KOS", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "TDM", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "RK", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "HGF", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "ABW", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "DP", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "CP", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "CS", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "BK", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "NJ", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "AE", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, "RT", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".com", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".net", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".vn", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".top", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".ga", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".ml", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".tk", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".us", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   if(strfind(text, ".org", true) != -1) {
       SendClientMessage(playerid, COLOR_RED, "Ban dang vi pham luat Meta Gaming (MG). Hay xem lai noi dung chat.");
      return 0;
   }
   return 1;
}
on 25.09.18 14:38#5
Báo cáo
avatar
Quản trị viên
Lệnh /ame
Code:
CMD:ame(playerid, params[])
{
 if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "SU DUNG: /ame [action]");
 new string[128];
 format(string, sizeof(string), "%s %s", GetPlayerNameEx(playerid), params);
 SetPlayerChatBubble(playerid,string,COLOR_PURPLE,60.0,8000);
 return 1;
}
Lệnh /trr
Code:
CMD:trr(playerid, params[])
{
   if(PlayerInfo[playerid][pAdmin] >= 2)
   {

      new string[168], reportid, reason[64];
      if(sscanf(params, "ds[64]", reportid, reason)) return SendClientMessageEx(playerid, COLOR_GREY,"SU DUNG: /trr [reportid] [ly do]");

      if(reportid < 0 || reportid > 999) { SendClientMessageEx(playerid, COLOR_GREY, "  ID bao cao phai tu 0 den 999!"); return 1; }
      if(Reports[reportid][BeingUsed] == 0)
      {
         SendClientMessageEx(playerid, COLOR_GREY, "  ID bao cao khong hop le!");
         return 1;
      }
      if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
      {
         SendClientMessageEx(playerid, COLOR_GREY, "  Nguoi bao cao da mat ket noi!");
         Reports[reportid][ReportFrom] = INVALID_PLAYER_ID;
         Reports[reportid][BeingUsed] = 0;
         return 1;
      }
      format(string, sizeof(string), "AdmCmd: %s da tu choi bao cao cua %s, ly do: %s", GetPlayerNameEx(Reports[reportid][ReportFrom]), GetPlayerNameEx(playerid), reason);
      ABroadCast(COLOR_ORANGE, string, 2);
      format(string, sizeof(string), "Bao cao cua ban da bi {FFA500}Tu choi{FFFFFF}, ly do: {FFA500}%s{FFFFFF}", reason);
      SendClientMessageEx(Reports[reportid][ReportFrom], COLOR_WHITE, string);
      PlayerInfo[playerid][pTrashReport]++;
        DeletePVar(Reports[reportid][ReportFrom], "HasReport");
      Reports[reportid][ReportFrom] = INVALID_PLAYER_ID;
      Reports[reportid][BeingUsed] = 0;
      Reports[reportid][TimeToExpire] = 0;
      strmid(Reports[reportid][Report], "None", 0, 4, 4);
   }
   return 1;
}
on 25.09.18 15:34#6
Báo cáo
avatar
Quản trị viên
FS tạo Actor
Code:
#include <a_samp>
#include <a_actor>

new Actor1;

public OnGameModeInit()
{
    Actor1 = CreateActor(155,2104.7820,-1809.4542,13.5547,86.9565);//PD ACTOR 1
    /*Actor2 = CreateActor(285, 1546.1542, -1673.1738, 13.5618, 114.0676);//PD ACTOR 2
    Actor3 = CreateActor(293, 2460.7007,-1651.8455,13.4473,91.4837);//Bao Ve Grove 1
    Actor4 = CreateActor(293, 2461.6846,-1665.8597,13.4735,81.2160);//Bao Ve Grove 2
    Actor6 = CreateActor(71, 1799.6764,-1580.1570,14.0926,303.7309); //Bao Ve Vip 1
    Actor7 = CreateActor(71, 1798.0558,-1576.3610,14.0625,279.1223); //Bao Ve Vip 2
    Actor12 = CreateActor(105, 2452.0740,-1666.7881,13.4762,206.4414); //Noi Chuyen Grove 1
    Actor13 = CreateActor(106, 2454.0251,-1667.3936,13.4780,130.6140); //Noi Chuyen Grove 2
   Actor14 = CreateActor(107, 2452.6248,-1668.8237,13.4822,343.6594); //Noi Chuyen Grove 3*/
    ApplyActorAnimation(Actor1, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
    /*ApplyActorAnimation(Actor2, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor3, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor4, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor6, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor7, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor12, "GANGS", "prtial_gngtlkA", 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor13, "GANGS", "prtial_gngtlkA", 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor14, "GANGS", "prtial_gngtlkA", 4.0, 1, 0, 0, 0, 0);*/
   return 1;
}




public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
   return 1;
}
on 05.10.18 0:14#7
Báo cáo
avatar
Quản trị viên
Hướng dẫn tạo Actor xin việc
Code:
// Hello cac ban minh` la` Fu hay hoanduy94
// Hom nay minh se huong dan cac ban cach' add code nhan viec bang` cách tuong tác voi Actor hay còn goi là NPC
// Ok, khong dai dong nua vao van de chính luôn nhé

// Dau tien chung ta them doan code này duoi "#define TIMVIECLAM"
#define        ACTOR_JOB                  (5715)

// Sau do' them doan code nay` duoi "new arr_Towing[MAX_PLAYERS];"
new PizzaActor;
// O day minh` se lam voi' Job Pizza, cac' ban mang ve` dua vao` lam` tiep' cac' Job khac' nhe'

// Tiep theo add code nay` vao` "public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)"
// O day co' 2 loai, ban nao` muon' kich' chuot vao` actor roi` moi' bam' Y thi` add code nay`
   if ((newkeys & KEY_HANDBRAKE) && (newkeys & KEY_YES))
    {
        new Float:PosXACtor, Float:PosYACtor, Float:PosZACtor;
        GetActorPos(PizzaActor, PosXACtor, PosYACtor, PosZACtor);
        if(IsPlayerInRangeOfPoint(playerid, 2.0, PosXACtor, PosYACtor, PosZACtor))
        {
            if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21)
            {
               ShowPlayerDialog(playerid, ACTOR_JOB, DIALOG_STYLE_LIST, "Cong Viec", "Xin Viec\nTu bo cong viec 1\nTu bo cong viec 2", "Chon", "Huy");
            return 1;
         }
         else
         {
             ShowPlayerDialog(playerid, ACTOR_JOB, DIALOG_STYLE_LIST, "Cong Viec", "Xin Viec\nTu bo cong viec 1\nTu bo cong viec 2\nLay banh", "Chon", "Huy");
         }
         return 0;
        }
    }
// Con` day la` bam' Y khong can kich chuot
    if(newkeys & KEY_YES)
    {
        new Float:PosXACtor, Float:PosYACtor, Float:PosZACtor;
        GetActorPos(PizzaActor, PosXACtor, PosYACtor, PosZACtor);
        if(IsPlayerInRangeOfPoint(playerid, 2.0, PosXACtor, PosYACtor, PosZACtor))
        {
            if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21)
            {
               ShowPlayerDialog(playerid, ACTOR_PIZZA, DIALOG_STYLE_LIST, "Cong Viec", "Xin Viec\nTu bo cong viec 1\nTu bo cong viec 2", "Chon", "Huy");
            return 1;
         }
         else
         {
             ShowPlayerDialog(playerid, ACTOR_PIZZA, DIALOG_STYLE_LIST, "Cong Viec", "Xin Viec\nTu bo cong viec 1\nTu bo cong viec 2\nLay banh", "Chon", "Huy");
         }
         return 0;
        }
    }
// Hai code tren cac ban add code nao` cung duoc nhe'

// Tiep theo cac ban tim doan code nay`
CreateDynamic3DTextLabel("Nhan vien Pizza Boy \nSu dung /xinviec de lua chon cong viec",COLOR_RED,-1720.962646, 1364.456176, 7.187500+0.5,4.0);
// va` hay~ vo hieu hoa' bang` cach' them // hoac xoa no' di, no' se~ nhu vay
//CreateDynamic3DTextLabel("Nhan vien Pizza Boy \nSu dung /xinviec de lua chon cong viec",COLOR_RED,-1720.962646, 1364.456176, 7.187500+0.5,4.0);
// roi` add code nay` duoi' code vo hieu hoa o tren
CreateDynamic3DTextLabel("Nhan vien Pizza \nKich giu chuot phai nham vao nhan vien pizza, sau do bam 'Y' de xin viec", COLOR_WHITE,-1719.8713,1363.1978,7.1875+0.6,4.0); //Actor Pizza

// Tiep theo cac ban tim den "public LoadStreamerDynamicObjects()" roi` add code nay` vao`
   PizzaActor = CreateActor(155, -1719.8713,1363.1978,7.1875,40.6729);
   
// Tiep theo add code nay` vao` "public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])"
   if(dialogid == ACTOR_JOB) // xin viec
    {
        if(response)
        {
            if(listitem == 0) //Xin viec
          {
              return cmd_xinviec(playerid, "");
         }
         if(listitem == 1) // Nghi viec 1
          {
                PlayerInfo[playerid][pJob] = 0;
                return cmd_thoatviec(playerid, "1");
         }
         if(listitem == 2) // Nghi viec 2
          {
                PlayerInfo[playerid][pJob2] = 0;
                return cmd_thoatviec(playerid, "2");
         }
         if(listitem == 3) // Lay banh
          {
                return cmd_laybanh(playerid, "");
         }
        }
    }

// Nhu vay la xong

// Thay code cmd:xinviec thanh code nay`
CMD:xinviec(playerid, params[])
{
   if(IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD1, "Ban khong the xin viec trong mot chiec xe.");
   if(GetPlayerState(playerid) == 1 && PlayerInfo[playerid][pJob] == 0 || PlayerInfo[playerid][pJob2] == 0) {
      if(IsPlayerInRangeOfPoint(playerid,3.0,1101.2601,-1424.2310,22.7760) || IsPlayerInRangeOfPoint(playerid,3.0,301.042633, 178.700408, 1007.171875) || IsPlayerInRangeOfPoint(playerid,3.0,-1385.6786,2625.6636,55.5572)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 1;
            //ThoiGianThamTu[playerid] = SetTimerEx("ThamTu", 100, 0, "ii", playerid, 1);
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            TogglePlayerControllable(playerid, 0);
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 1;
            //ThoiGianThamTu[playerid] = SetTimerEx("ThamTu", 100, 0, "ii", playerid, 1);
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            TogglePlayerControllable(playerid, 0);
            return 1;
         }
      }
      else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1469.5247, -1755.7039, 3285.2859)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 2;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 2;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,1215.1304,-11.8431,1000.9219)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 3;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 3;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,2164.5686,-1673.0795,15.0788) || IsPlayerInRangeOfPoint(playerid,3.0,-2089.344970, 87.800231, 35.320312) || IsPlayerInRangeOfPoint(playerid,3.0,-1528.0924,2688.7837,55.8359)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 4;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 4;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,-1900.3674,277.2215,41.0391) || IsPlayerInRangeOfPoint(playerid,3.0,-2032.601928, 143.866592, 28.835937) || IsPlayerInRangeOfPoint(playerid,3.0,-1475.4224,1877.3550,32.6328)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 7;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 7;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,1118.2877,-1558.9484,22.7435) || IsPlayerInRangeOfPoint(playerid,3.0,-2269.256103, -158.054321, 35.320312) || IsPlayerInRangeOfPoint(playerid,3.0,2226.1716,-1718.1792,13.5165) || IsPlayerInRangeOfPoint(playerid,3.0,1099.73,-1504.67,15.800) || IsPlayerInRangeOfPoint(playerid,3.0,-821.3508,1574.9393,27.1172)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 8;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 8;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,2447.7161,1156.2017,10.8203) || IsPlayerInRangeOfPoint(playerid,3.0,-2623.333984, 209.235931, 4.684767) || IsPlayerInRangeOfPoint(playerid,3.0,-1513.4904,2614.3591,55.8078)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 9;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 9;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,821.9666,-1755.9916,13.6546) || IsPlayerInRangeOfPoint(playerid,3.0,758.98, -60.32, 1000.78)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 12;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
                SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 12;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,2354.0151,-1170.5286,28.0680) || IsPlayerInRangeOfPoint(playerid,3.0,-2630.7375,2349.3994,8.4892)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 14;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            SendClientMessageEx(playerid, COLOR_WHITE, "HUONG DAN: Ban co the tim thay thung lay thuoc phien tai BlueBerry. ( Hay di theo diem do tren mini map )");
             if(CheckPointCheck(playerid)) {
                  SendClientMessageEx(playerid, COLOR_WHITE, "Hay chac chan rang ban da xoa cac muc tieu hien tai.");
                   return 1;
                 }
                 SetPlayerCheckpoint(playerid, 51.9720,-292.6349,1.7031, 3);
                 CP[playerid] = 252000;
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 14;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            SendClientMessageEx(playerid, COLOR_WHITE, "HUONG DAN: Ban co the tim thay thung lay thuoc phien tai BlueBerry. ( Hay di theo diem do tren mini map )");
             if(CheckPointCheck(playerid)) {
                  SendClientMessageEx(playerid, COLOR_WHITE, "Hay chac chan rang ban da xoa cac muc tieu hien tai.");
                  return 1;
               }
                SetPlayerCheckpoint(playerid, 51.9720,-292.6349,1.7031, 3);
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,1741.5199,-1863.4615,13.5750) || IsPlayerInRangeOfPoint(playerid,3.0,-1981.144775, 133.063293, 27.687500)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 17;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 17;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,2194.4492,-1972.9294,13.5592) || IsPlayerInRangeOfPoint(playerid,3.0,-1356.7195,2065.3450,52.4677)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 18;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 18;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,502.6696,-11.6603,1000.6797) || IsPlayerInRangeOfPoint(playerid,3.0,-864.3550,1536.9703,22.5870)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 19;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 19;
            PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0,-1557.7332,122.7275,3.5547)) {
            if(PlayerInfo[playerid][pJob] == 0)
            {
               SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
               GettingJob[playerid] = 20;
               //ThoiGianTrucker[playerid] = SetTimerEx("Trucker", 100, 0, "ii", playerid, 1);
               PlayerInfo[playerid][pJob] = GettingJob[playerid];
               TogglePlayerControllable(playerid, 0);
               return 1;
            }
            if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0)
            {
               SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
               SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
               SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
               GettingJob2[playerid] = 20;
               TogglePlayerControllable(playerid, 0);
               //ThoiGianTrucker[playerid] = SetTimerEx("Trucker", 100, 0, "ii", playerid, 1);
               PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
               return 1;
            }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0, -1719.8713, 1363.1978, 7.1875)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 21;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            TogglePlayerControllable(playerid, 0);
            //ThoiGianPizza[playerid] = SetTimerEx("Pizza", 100, 0, "ii", playerid, 1);
            SendClientMessageEx(playerid, COLOR_WHITE, "Ban da nhan duoc mot trang phuc Pizza Boy de lam viec!");
            PlayerInfo[playerid][pModel] = 155;
            SetPlayerSkin(playerid, 155);
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 21;
               PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
               TogglePlayerControllable(playerid, 0);
               //ThoiGianPizza[playerid] = SetTimerEx("Pizza", 100, 0, "ii", playerid, 1);
               SendClientMessageEx(playerid, COLOR_WHITE, "Ban da nhan duoc mot trang phuc Pizza Boy de lam viec!");
            PlayerInfo[playerid][pModel] = 155;
            SetPlayerSkin(playerid, 155);
            return 1;
         }
      }
      else if (IsPlayerInRangeOfPoint(playerid,3.0, 2170.7214,-1997.0867,19.6717)) {
         if(PlayerInfo[playerid][pJob] == 0){
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            GettingJob[playerid] = 22;
            PlayerInfo[playerid][pJob] = GettingJob[playerid];
            return 1;
         }
         if((PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pFamed] > 0) && PlayerInfo[playerid][pJob2] == 0) {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Xin chuc mung ban da nhan duoc cong viec moi, su dung /trogiup de biet them cac lenh co ban.");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Ban nhan them cong viec phu. Chi VIP/Famed moi  lam duoc dieu nay");
            SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: Ban da nhan cong viec nay thanh nghe phu.");
            GettingJob2[playerid] = 22;
               PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
            return 1;
         }
      }
      else {
         SendClientMessageEx(playerid, COLOR_GREY, "Ban khong o dia diem nhan cong viec!");
      }
   }
   else {
      if(PlayerInfo[playerid][pDonateRank] == 0){
         SendClientMessageEx(playerid, COLOR_GREY, "Ban dang co mot cong viec, su dung /thoatviec de thoat khoi cong viec!");
            SendClientMessageEx(playerid, COLOR_YELLOW, "Chi VIP/Famed moi co the nhan duoc hai cong viec!");
      }
      else {
         SendClientMessageEx(playerid, COLOR_GREY, "Ban dang co 2 cong viec, su dung /thoatviec de thoat khoi cong viec!");
      }
   }
    return 1;
}

//Thay lai code cmd:laybanh bang cmd nay`
CMD:laybanh(playerid, params[]) {
   if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21) {
      SendClientMessageEx(playerid,COLOR_GREY,"  Ban khong phai la Pizza Boy!");
   }
   else if(GetPlayerSkin(playerid) != 155) {
       SendClientMessageEx(playerid,COLOR_GREY,"  Ban phai mac trang phuc Pizza Boy theo dung yeu cau cua tiem Pizza SF!");
   }
   else if(GetPVarType(playerid, "Pizza")) {
      SendClientMessageEx(playerid, COLOR_GREY, "  Ban giao banh pizza!");
   }
   else if(!IsPlayerInRangeOfPoint(playerid, 3.0, -1719.8713, 1363.1978, 7.1875)) {
      SendClientMessageEx(playerid,COLOR_GREY,"  Ban khong o diem lay banh cua cua hang Pizza SF!");
   }
   else {

      new rand = random(MAX_HOUSES - 1), i;
      while(!(HouseInfo[rand][hOwned] && HouseInfo[rand][hExteriorZ] <= 100 && HouseInfo[rand][hExteriorX] > -2802.389648 && HouseInfo[rand][hExteriorX] < -1400.710327 && HouseInfo[rand][hExteriorY] < 2800 && HouseInfo[rand][hExteriorY] > -216.298019)) {
         if(++rand >= MAX_HOUSES) {
            rand = 0;
         }
         if (i++ > MAX_HOUSES) return 1;
      }

      new
         iDist = floatround(GetPlayerDistanceFromPoint(playerid, HouseInfo[rand][hExteriorX], HouseInfo[rand][hExteriorY], HouseInfo[rand][hExteriorZ])),
         szMessage[86];

      SetPVarInt(playerid, "tpPizzaTimer", iDist / 80);
      SetPVarInt(playerid, "pizzaTotal", iDist / 10);
      SetPVarInt(playerid, "pizzaTimer", iDist / 10);
      SetPVarInt(playerid, "Pizza", rand);

      SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPPIZZARUNTIMER);
      SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_PIZZATIMER);

      format(szMessage, sizeof(szMessage), "Ban da nhan duoc banh Pizza va giao cho %s. Ban co %d giay de thuc hien!", StripUnderscore(HouseInfo[rand][hOwnerName]), iDist / 10);
      SendClientMessageEx(playerid, COLOR_WHITE, szMessage);

      SetPlayerCheckpoint(playerid, HouseInfo[rand][hExteriorX], HouseInfo[rand][hExteriorY], HouseInfo[rand][hExteriorZ], 5);
   }
   return 1;
}
// Tiep theo vo hieu hoa /chapnhan congviec
// Ctrl+F tim` else if(strcmp(params, "congviec", true) == 0)
// sau do' vo hieu hoa' no'

// Cuoi cung` luu lai va tat' di
// bo file a_actor vao muc pawno/include
// Sau do vao` gamemode goc' o gamemode them dong` nay`
#include <a_actor>

// roi` F5 tan huong thanh qua
on 05.10.18 0:17#8
Báo cáo
Sponsored content
Quyền hạn của bạn
Bạn không có quyền trả lời bài viết