- เครดิต
- 276
- ความรู้
-
- เงิน $
-
- ความดี
-
|
ในสคริปที่ผมกำลังมันเป็นแบบนี้
- -1988.4524,89.5555,27.6875 พิกัดพื้นที่มั่ง
- if(PlayerToPoint(20 เลข 20 หน้าจะเป็นระยะของพื้นที่ที่ห้ามถืออาวุธ มั่งนะ
if(PlayerToPoint(20, playerid, -1988.4524,89.5555,27.6875)
||PlayerToPoint(20, playerid, -1985.7549,110.4186,27.6875)
||PlayerToPoint(20, playerid, -1985.1445,137.4617,27.6875)
||PlayerToPoint(20, playerid, -1985.0215,162.7520,27.6875)
||PlayerToPoint(20, playerid, -1984.4189,192.9052,27.6875)
||PlayerToPoint(20, playerid, -2005.2937,195.0566,27.6019)
||PlayerToPoint(20, playerid, -2012.6512,159.7605,27.6875)
||PlayerToPoint(20, playerid, -2027.7759,138.5460,27.5179)
||PlayerToPoint(20, playerid, -2060.4192,141.5665,27.5251)
||PlayerToPoint(20, playerid, -2085.1553,159.7678,27.5251)
||PlayerToPoint(20, playerid, -2071.0806,172.9146,27.9580)
||PlayerToPoint(20, playerid, -2043.4124,184.2526,27.5179)
||PlayerToPoint(20, playerid, -2055.1311,233.5242,35.5160)
||PlayerToPoint(20, playerid, -2068.4536,260.5681,35.5809)
||PlayerToPoint(20, playerid, -2045.7241,76.5934,28.3977))// เขตยึดอาวุธ หน้าอู่
{
if(eventwanted == 0)
{
SetPlayerArmedWeapon(playerid, 0);
if (GetPlayerWeapon(playerid) != 0)
{
SetPlayerArmedWeapon(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
SendClientMessage(playerid, COLOR_RED, "เข้าสู่เขตห้ามใช้อาวุธ !");
}
}
if(rob24stats[playerid] == 1)
{
if(rob24time[playerid] >= MAX_SPAM)
{
format(string,sizeof(string), "เหลือเวลาอีก %d วิถ้าคุณอยู่แถวหน้าอู่ จะตายทันที",rob24time[playerid]);
SendClientMessage(playerid,COLOR_RED,string);
}
if(rob24time[playerid] == 0)
{
SetTimerEx("Rob24Dead",100,0,"i",playerid);
}
}
}
} |
|