CMD:freeze(playerid, params[]) {new string[128], result[64], player1;if(PlayerInfo[playerid][AdminLevel] < 2) return SendLevelError(playerid, 2);if(sscanf(params, \"ds[100]\", player1, result)) return SendUsageError(playerid, \"/freeze [id] [reason]\");if(!IsPlayerConnected(player1)) return SendCommandError(playerid, 0);SendCommandMessage(playerid, player1, \"Freeze\", result);TogglePlayerControllable(player1,false);PlayerInfo[player1][Freezed] = 1;PlayerPlaySound(player1,1057,0.0,0.0,0.0);format(string, sizeof(string),\"You have been Freezed!\\nBy Admin, %s\\n\\n temp: %s\\n\\nNext time follow the Rules!\", PlayerName(playerid), result); ShowPlayerDialog(player1, 204, DIALOG_STYLE_MSGBOX, \"You have been Freezed\", string, \"Ok\", \"\");return 1;}
#include <a_samp>#include <zcmd>#include <sscanf>CMD:mycommand(playerid, params[]) {SendClientMessage(playerid, 0xFFFFFFAA, \"Its my command\");return 1;}
#include <a_samp>#include <zcmd>#include <sscanf>CMD:mycommand(playerid, params[]) {new player1, name[32], string[128];if(sscanf(params, \"d\", player1)) return SendClientMessage(playerid, 0xFFFFAAAA, \"Bazdmeg!\");GetPlayerName(player1, name, sizeof(name));format(string, sizeof(string), \"%s %d\", name, player1);SendClientMessage(playerid, 0xFFFFFFAA, string);return 1;}
#include <a_samp>#include <zcmd>#include <sscanf>CMD:mycommand(playerid, params[]) {new player1, name[32], string[128], result[32];if(sscanf(params, \"ds[32]\", player1, result)) return SendClientMessage(playerid, 0xFFFFAAAA, \"Bazdmeg\");GetPlayerName(player1, name, sizeof(name));format(string, sizeof(string), \"%s %d %s\", name, player1, result);SendClientMessage(playerid, 0xFFFFFFAA, string);return 1;}
#include <a_samp>#include <zcmd>#include <sscanf>CMD:mycommand(playerid, params[]) {new player1, player2, string[128], name[32], pname[32], result[64];if(sscanf(params, \"dds[64]\", player1, player2, result)) return SendClientMessage(playerid, 0xFFFFAAAA, \"Bazdmeg!\");GetPlayerName(player1, name, sizeof(name)); GetPlayerName(player2, pname, sizeof(pname));format(string, sizeof(string), \"%s %d %s %d %s\", name, player1, pname, player2, result);SendClientMessage(playerid, 0xFFFFFFAA, string);return 1;}
CMD:mycommand(playerid, params[]) { new player1, name[MAX_PLAYER_NAME], string[128], result[32]; if(sscanf(params, \"us\", player1, result)) return SendClientMessage(playerid, 0xFFFFAAAA, \"***dmeg\"); else if(player1 == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFFFFAAAA, \"Nincs ilyen játékos.\"); GetPlayerName(player1, name, sizeof(name)); format(string, sizeof(string), \"%s %s\", name, result); SendClientMessage(playerid, 0xFFFFFFAA, string); return 1;}