dcmd_slap(playerid,params[]){if(AccInfo[playerid][Level] >= 3){ new Index; new tmp[256]; tmp = strtok(params,Index); new tmp2[256]; tmp2 = strtok(params,Index); new giveplayerid, giveplayername[MAX_PLAYER_NAME]; new name[MAX_PLAYER_NAME]; if(!strlen(params)) return SendClientMessage(playerid, red, \"Használat: /slap [Játékos ID/Név Részlet] [indok]\") && SendClientMessage(playerid, orange, \"Funkció: Slap a megadott játékosnak\"); new player1; new string[128]; player1 = strval(tmp); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && (AccInfo[player1][Level] != ServerInfo[MaxAdminLevel])) { SendCommandToAdmins(playerid,\"Slap\"); new Float:Health; new Float:x, Float:y, Float:z; GetPlayerHealth(player1,Health); SetPlayerHealth(player1,Health-25); GetPlayerPos(player1,x,y,z); SetPlayerPos(player1,x,y,z+5); PlayerPlaySound(playerid,1190,0.0,0.0,0.0); PlayerPlaySound(player1,1190,0.0,0.0,0.0); GetPlayerName(playerid,name,sizeof(name)); GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername)); format(string,sizeof(string),\"{FF0000}[ADMIN]:{00FF00} \'\'%s\'\' felpofozta: \'\'%s\'\'-t!\",name,giveplayername); SendClientMessageToAll(COLOR_PURPLE,string); format(string,sizeof(string),\"{FF0000}[ADMIN]: {00FF00}Indok: {00FFFF}%s\",params[2]); SendClientMessageToAll(COLOR_PURPLE,string); } else return SendClientMessage(playerid, red, \"Hiba: Ez a Játékos Nincs Csatlakoztatva Vagy a Legmagasabb admin!\");}else return ErrorMessages(playerid, 1);}
C:\\Users\\]PETI[\\Desktop\\PeTi\\SZERVER\\filterscripts\\lux.pwn(5898) : warning 209: function \"dcmd_slap\" should return a value[/quote]Választ elõre, köszi!