Hello guys i'm new here... i joined MPGH today.. And i'm very very new in Hacking or Programming or whatever I want to ask how to make a hacking program using a PAWN Script? Like injecting the hack to the SA:MP server... For example.
The server has this script
Code:
CMD:givemoney(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
new string[128], giveplayerid, money;
if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /givemoney [playerid] [money]");
if(IsPlayerConnected(giveplayerid))
{
GivePlayerCash(giveplayerid, money);
format(string, sizeof(string), "You have given %s $%d !",GetPlayerNameEx(giveplayerid),money);
SendClientMessageEx(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "%s has given %s $%d (/givemoney)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),money);
Log("logs/stats.log", string);
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}
and how can i make a program and turn the script into like this?
Code:
CMD:givemoney(playerid, params[])
{
//Admin Removed :)
new string[128], giveplayerid, money;
if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /givemoney [playerid] [money]");
if(IsPlayerConnected(giveplayerid))
{
GivePlayerCash(giveplayerid, money);
format(string, sizeof(string), "You have given %s $%d !",GetPlayerNameEx(giveplayerid),money);
SendClientMessageEx(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "%s has given %s $%d (/givemoney)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),money);
Log("logs/stats.log", string);
}
}
//Removed This aswell :)
return 1;
}
So, when i type /givemoney, i can give everyone money Is that possible? Well... i think PAWN language are same as C++, but i don't know much about that :/ If you guys can, you can PM me or just comment below Peace