-
Posts
75 -
Joined
-
Days Won
6
Community Answers
-
Akan's post in Ajutor script was marked as the answer
Problema este in 'task SetPlayerUnjail[ 1000 ]( ) {'
Acolo trebuie inlocuit script-ul acesta:
if( GetPlayerCameraMode ( x ) == 53 ) { new Float: cam_pos ; GetPlayerCameraPos ( x, cam_pos, cam_pos, cam_pos ) ; if ( floatabs ( cam_pos ) > 50000 ) return va_SendClientMessageToAll(COLOR_LIGHTRED, "AdmBot: %s has been kicked by AdmBot, reason: Weapon Crasher #2.", GetName(x)); Kick(x); return 0; } cu acesta:
if( GetPlayerCameraMode ( x ) == 53 ) { new Float: cam_pos ; GetPlayerCameraPos ( x, cam_pos, cam_pos, cam_pos ) ; if ( floatabs ( cam_pos ) > 50000 ) { va_SendClientMessageToAll(COLOR_LIGHTRED, "AdmBot: %s has been kicked by AdmBot, reason: Weapon Crasher #2.", GetName(x)); Kick(x); return 0; } } Return-ul este pus gresit doar pe trimiterea mesajului.
Adica daca ai hack, trimite acel mesaj dar nu iei kick.
Iar daca nu ai hack, nu trimite mesajul dar iei kick.
-
Akan's post in Comanda remote control was marked as the answer
Daca folosesti y_commands, trebuie sa pui
Command_ReProcess(id, text, false); in loc de
OnPlayerCommandReceived(id, text); Si apoi o folosesti dupa exemplul urmator: /remotecontrol Akan /gotols - Asta ma face pe mine sa dau /gotols automat. Si o poti folosi si cu parametri: /remotecontrol Akan /gethere Akan - Asta ma face pe mine sa-mi dau /gethere singur.
Si modifica si tu if(sscanf(params, "is[30]", id, text)) in if(sscanf(params, "us[30]", id, text)) ca sa poti folosi comanda asta pe un jucator si dupa numele lui, nu doar dupa id-ul lui. Succes.
-
Akan's post in Problema licente. Va rog sa ma ajutati. was marked as the answer
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { if(isBoat(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pBoatLic] == 0) { ClearAnimations(playerid); return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de navigatie."); } else if(isPlane(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pFlyLic] == 0) { ClearAnimations(playerid); return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de pilot."); } else if(!isBike(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pDrivingLic] == 0) { ClearAnimations(playerid); return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de condus."); } } return 1; } if(newstate == PLAYER_STATE_DRIVER) { if(isBoat(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pBoatLic] == 0) { SlapPlayer(playerid); return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de navigatie."); } else if(isPlane(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pFlyLic] == 0) { SlapPlayer(playerid); return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de pilot."); } else if(!isBike(GetVehicleModel(GetPlayerVehicleID(playerid))) && PlayerInfo[playerid][pDrivingLic] == 0) { SlapPlayer(playerid); return SendClientMessage(playerid, COLOR_GREY, "Nu ai licenta de condus."); } } Pune asa.
-
Akan's post in Eroare 029 was marked as the answer
Inlocuieste linia cu: `AddStaticPickup(1239, 23, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);`
SbEntrance trebuie sa fie cu 's' mic.