Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //add duoi SetPVarInt(playerid, "CleoWarning", GetPVarInt(playerid, "CleoWarning")+1);
- }
- }
- }
- }
- }
- //CODE NÀY ÁP DỤNG CHO Khu An Toàn Có Biến Là [SzKhoangCach]
- if(issuerid != INVALID_PLAYER_ID)
- {
- for(new Sz; Sz < MAX_SZ; Sz++)
- {
- if(IsPlayerInRangeOfPoint(playerid, SafeZoneInfo[Sz][szKhoangcach], SafeZoneInfo[Sz][szExteriorX], SafeZoneInfo[Sz][szExteriorY], SafeZoneInfo[Sz][szExteriorZ]))
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(GetPlayerState(issuerid) == PLAYER_STATE_DRIVER)
- {
- if(weaponid == 49 || weaponid == 50)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(issuerid, x, y, z);
- SetPlayerPos(issuerid, x, y, z + 5);
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z + 3);
- TogglePlayerControllable(issuerid, 0);
- Loaded[issuerid] = 1;
- SetTimer("LoadPlayer", 5000, false);
- SendClientMessage(issuerid, -1, "Khong duoc CR/BK trong khu an toan");
- return 1;
- }
- }
- }
- }
- }
- //CÒN CODE NÀY LÀ KHU AN TOÀN CÓ BIẾN LÀ [SzSize]
- if(issuerid != INVALID_PLAYER_ID)
- {
- for(new Sz; Sz < MAX_SZ; Sz++)
- {
- if(IsPlayerInRangeOfPoint(playerid, SafeZoneInfo[Sz][szSize], SafeZoneInfo[Sz][szPosX], SafeZoneInfo[Sz][szPosY], SafeZoneInfo[Sz][szPosZ]))
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(GetPlayerState(issuerid) == PLAYER_STATE_DRIVER)
- {
- if(weaponid == 49 || weaponid == 50)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(issuerid, x, y, z);
- SetPlayerPos(issuerid, x, y, z + 5);
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z + 3);
- TogglePlayerControllable(issuerid, 0);
- Loaded[issuerid] = 1;
- SetTimer("LoadPlayer", 5000, false);
- SendClientMessage(issuerid, -1, "Khong duoc CR/BK trong khu an toan");
- return 1;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment