ลืมรหัสผ่าน
ดู: 643|ตอบกลับ: 2

ช่วยสอนทำจุดวาปแก๊งทีครับ

[คัดลอกลิงก์]
ช่วยสอนทีครับ อยากได้มากๆเลย   แล้วก็ปืนส่วนตัวอะ  ขอบคุณครับ
โพสต์ 2013-3-9 10:05:45 | ดูโพสต์ทั้งหมด
//////////วาป///////////////////
if(strcmp(cmd, "/เปลี่ยนคำสั่งวาปเอานะ", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
            if(!PlayerToPoint(3.0,playerid,1971.7695,1619.6788,12.8834)) //พิกัดที่จะวาปได้ คือต้องอยู่จุดนี้จึงจะวาปได้
            {
               SendClientMessage(playerid, COLOR_GREY, "  คุณไม่ได้อยู่จุดวาป !");
               return 1;
            }
            if(IsPlayerConnected(playerid))
            {
                                if (GetPlayerState(playerid) == 2)
                                {
                                        new tmpcar = GetPlayerVehicleID(playerid);
                                                                       SetVehiclePos(tmpcar, -1930.3608,198.0463,25.6393);  //อันนี้พิกัดที่จะวาปไป
                                        TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                                }
                                else
                                {
                                                                   SetPlayerPos(playerid, -1930.3608,198.0463,25.6393); //อันนี้พิกัดที่จะวาปไป
                                }
                                SetPlayerInterior(playerid,0);
                                PlayerInfo[playerid][pLocal] = 103;
                                                    GameTextForPlayer(playerid, "~P~Wellcom To RC Server", 5000, 1); //อันนี้เวลาวาปแล้วจะึ้ขึ้นคำข้างๆ
                                SetPlayerPos(playerid,-1930.3608,198.0463,25.6393);
                        }
                        else
                        {
                                SendClientMessage(playerid, COLOR_GRAD1, "คุณไม่สามารถใช้คำสั่งนี้ได้!");
                        }
                }
                return 1;
        }

อันนี้คำสั่งอยู่ที่ไหนก็วาปได้ (สำหรับแอดมิน) (ส่วนที่จะเปลีย่นตรงไหนก้เปลี่ยนเหมือนข้างบนเลย)

if(strcmp(cmd, "/เปลี่ยนคำสั่ง", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                        if(PlayerInfo[playerid][pAdmin] >= 3)
                        {
                                if (GetPlayerState(playerid) == 2)
                                {
                                        new tmpcar = GetPlayerVehicleID(playerid);
                                        SetVehiclePos(tmpcar, 2147.8657,-75.5560,3.0968);
                                        TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                                }
                                else
                                {
                                        SetPlayerPos(playerid, 2147.8657,-75.5560,3.0968);
                                }
                                SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported !");
                                SetPlayerInterior(playerid,0);
                                PlayerInfo[playerid][pInt] = 0;
                        }
                        else
                        {
                                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
                        }
                }
                return 1;
        }

อันนี้วาปที่ไหนก็ได้สำหรับบุลคนทั่วไป

if(strcmp(cmd, "/เปลี่ยนคำสั่ง", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                        if(PlayerInfo[playerid][pAdmin] >= 0)
                        {
                                if (GetPlayerState(playerid) == 2)
                                {
                                        new tmpcar = GetPlayerVehicleID(playerid);
                                        SetVehiclePos(tmpcar, 2147.8657,-75.5560,3.0968);
                                        TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                                }
                                else
                                {
                                        SetPlayerPos(playerid, 2147.8657,-75.5560,3.0968);
                                }
                                SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported !");
                                SetPlayerInterior(playerid,0);
                                PlayerInfo[playerid][pInt] = 0;
                        }
                        else
                        {
                                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
                        }
                }
                return 1;
        }


อันนี้สำหรับ VIP

if(strcmp(cmd, "/เปลี่ยนคำสั่ง", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                                  if(PlayerInfo[playerid][pDonateRank] >= 0) //จะให้ยศ VIP~ ไรก็ใส่ไป
                        {
                                if (GetPlayerState(playerid) == 2)
                                {
                                        new tmpcar = GetPlayerVehicleID(playerid);
                                        SetVehiclePos(tmpcar, 2147.8657,-75.5560,3.0968);
                                        TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                                }
                                else
                                {
                                        SetPlayerPos(playerid, 2147.8657,-75.5560,3.0968);
                                }
                                SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported !");
                                SetPlayerInterior(playerid,0);
                                PlayerInfo[playerid][pInt] = 0;
                        }
                        else
                        {
                                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
                        }
                }
                return 1;
        }

////////////////////ปืน/////////////

ctrl+f หา public SetPlayerWeapons
เพิ่ม

if(PlayerInfo[playerid][pPnumber] == 1150)---->อันนี้หมายเลขโทรศัพท์ที่เราตั้งไว้ว่าเลขอะไร
{
GivePlayerWeapon(playerid,24, 900);--> อันนี้คือ รหัสปืน จำนวนกระสุน
}
โดเนทปืน


คะแนน

1

ดูบันทึกคะแนน

 เจ้าของ| โพสต์ 2013-3-9 11:02:40 | ดูโพสต์ทั้งหมด
ขอบคุณมากๆครับ
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

ปิด

เว็บมาสเตอร์แนะนำก่อนหน้า /1 ต่อไป

รูปแบบข้อความล้วน|Mobile|รายชื่อผู้ถูกระงับบัญชี| Samp-TH GTAOnline Thailand



เว็บสอนเปิดเซิฟเวอร์ GTA SAMP ONLINE, แจกสคริปต์ GTA, ขายสคริปต์ GTA, ซื้อสคริปต์ GTA SAMP, รวมระบบ GTA SAMP, รวมเซิฟ GTA ONLINE SAMP, SAMP-TH.NET, เกมจีทีเอ, GTA SAN, หาเซิฟ GTA เล่น, โปรโมทเซิฟ GTA ONLINE, วิธีเล่น GTA ONLINE, จีทีเอ ออนไลน์, หาเซิฟ GTA, เซิฟ GTA 0.3.7, เซิฟ GTA 0.3e RC5, ระบบเซิฟ GTA, สคริปต์ GTA, GTA ออนไลน์, เว็บโหลด GTA, SAMP-TH, GTA-TH, โคโล GTA, หาเซิฟ GTA ONLINE, COLO-GTA, โคโลจีทีเอ, เช่าโคโล GTA, เซิฟ GTA ออนไลน์

Copyright © 2001-2013 Comsenz Inc.   All Rights Reserved.

Powered by Discuz! X3.4

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้