Ittvan kompletten egy rendõr munka script. Ebbõl kitudod venni.http://sampforum.hu/index.php?topic=19273.msg208525#msg208525
#include sscanf#include zcmdCMD:bilincs(playerid, params[]){new giveplayerid;new Float:x, Float:y, Float:z;GetPlayerPos(playerid, x, y, z);if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /bilincs [playerid]\");if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");if(!IsPlayerInRangeOfPoint(giveplayerid, 3.0, x,y,z)) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: A játékos nincs a közeledben\");new name[MAX_PLAYER_NAME],string[200];GetPlayerName(playerid, name, sizeof(name));new illeto[MAX_PLAYER_NAME];GetPlayerName(giveplayerid, illeto, sizeof(illeto));format(string, sizeof string, \"{009dff}[Rendõr-%s] {2bff00}megbilincselte {ff9500}%s -t!\", name, illeto);mehet[giveplayerid] = 1; if(IsPlayerLuxAdmin(playerid)){SendClientMessageToAll(0xFF0000AA,string);TogglePlayerControllable(giveplayerid,0); ApplyAnimation(giveplayerid, \"PED\", \"cower\", 1, 1, 0, 0, 0, 0, 1);}else{ SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");}return 1;}CMD:levesz(playerid, params[]){new giveplayerid;new Float:x, Float:y, Float:z;GetPlayerPos(playerid, x, y, z);if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /levesz [playerid]\");if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");if(!IsPlayerInRangeOfPoint(giveplayerid, 3.0, x,y,z)) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: A játékos nincs a közeledben\");new name[MAX_PLAYER_NAME],string[200];GetPlayerName(playerid, name, sizeof(name));new illeto[MAX_PLAYER_NAME];GetPlayerName(giveplayerid, illeto, sizeof(illeto));format(string, sizeof string, \"{009dff}[Rendõr-%s] {2bff00}levette a bilincset {ff9500}%s -ról/rõl!\", name, illeto); if(IsPlayerLuxAdmin(playerid)){SendClientMessageToAll(0xFF0000AA,string);TogglePlayerControllable(giveplayerid,1); ClearAnimations(giveplayerid);}else{ SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");}return 1;}
Szia! Tessék: #include sscanf#include zcmdCMD:bilincs(playerid, params[]){new giveplayerid;new Float:x, Float:y, Float:z;GetPlayerPos(playerid, x, y, z);if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /bilincs [playerid]\");if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");if(!IsPlayerInRangeOfPoint(giveplayerid, 3.0, x,y,z)) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: A játékos nincs a közeledben\");new name[MAX_PLAYER_NAME],string[200];GetPlayerName(playerid, name, sizeof(name));new illeto[MAX_PLAYER_NAME];GetPlayerName(giveplayerid, illeto, sizeof(illeto));format(string, sizeof string, \"{009dff}[Rendõr-%s] {2bff00}megbilincselte {ff9500}%s -t!\", name, illeto);mehet[giveplayerid] = 1; if(IsPlayerLuxAdmin(playerid)){SendClientMessageToAll(0xFF0000AA,string);TogglePlayerControllable(giveplayerid,0); ApplyAnimation(giveplayerid, \"PED\", \"cower\", 1, 1, 0, 0, 0, 0, 1);}else{ SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");}return 1;}CMD:levesz(playerid, params[]){new giveplayerid;new Float:x, Float:y, Float:z;GetPlayerPos(playerid, x, y, z);if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /levesz [playerid]\");if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");if(!IsPlayerInRangeOfPoint(giveplayerid, 3.0, x,y,z)) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: A játékos nincs a közeledben\");new name[MAX_PLAYER_NAME],string[200];GetPlayerName(playerid, name, sizeof(name));new illeto[MAX_PLAYER_NAME];GetPlayerName(giveplayerid, illeto, sizeof(illeto));format(string, sizeof string, \"{009dff}[Rendõr-%s] {2bff00}levette a bilincset {ff9500}%s -ról/rõl!\", name, illeto); if(IsPlayerLuxAdmin(playerid)){SendClientMessageToAll(0xFF0000AA,string);TogglePlayerControllable(giveplayerid,1); ClearAnimations(giveplayerid);}else{ SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");}return 1;}