- เครดิต
- 368
- ความรู้
-
- เงิน $
-
- ความดี
-
|
แก้ไขครั้งสุดท้ายโดย dkphuket4 เมื่อ 2016-4-7 22:26
ตามนี้อ่ะครับ สคริปใหม่ของผม ผมเอามาทำใหม่ ด่านมันไม่ขึ้น พอเอาไปใส่ในสคริป อื่นมันขึ้น
- if(strcmp(cmdtext, "/roadblock", true)==0 || strcmp(cmdtext, "/rb", true)==0)
- {
- if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1 ||PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
- if (PlayerInfo[playerid][pRoadblock] != 0) return SendClientMessage(playerid, COLOR_GREY, " ¤Ø³ä´éµÑ駴èÒ¹ä»áÅéÇ 1 ·Õè â»Ã´à¡çº´èÒ¹¢Íº¤Ø³¡è͹ÇÒ§ÍÕ¡¤ÃÑé§ (¾ÔÁ¾ì /rrb)");
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- PlayerInfo[playerid][pRoadblock] = CreateDynamicObject(981, X, Y, Z, 0.0, 0.0, A+180);
- SafeSetPlayerPos(playerid, X, Y, Z+4);
- GameTextForPlayer(playerid, "~w~Roadblock ~r~Placed", 5000, 5);
- SendClientMessage(playerid, COLOR_GREEN, " µÑ駴èÒ¹áÅéÇ!!! (à¡çº´èÒ¹ãËé¾ÔÁ¾ì/rrb ËÃ×Í /roadunblock)");
- //roadblocktimer = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "HQ: ¤Ø³ %s ä´éµÑ駴èÒ¹äÇéá¶ÇæÊÔ觡èÍÊÃéÒ§ÊÑ¡·Õè¹Ö§", sendername);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
- {
- SetPlayerCheckpoint(playerid, X, Y, Z-10, 1.0);
- SendClientMessage(i, TEAM_BLUE_COLOR, string);
- if (PlayerInfo[i][pRank] >= 2 && PlayerInfo[i][pMember] || PlayerInfo[i][pLeader] == 1)
- {
- SendClientMessage(i, COLOR_YELLOW, "¤Ø³ÊÒÁÒöà¡çº´èÒ¹·Ñé§ËÁ´â´Â¡ÒþÔÁ¾ì /rrball");
- }
- }
- }
- }
- SetTimer("ResetRoadblockTimer", 6000, false);
- return 1;
- }
คัดลอกไปที่คลิปบอร์ด |
|