Habe mal ein kleines filterscript erstellt:
#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Cheat by gtaturke54");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Cheat by gtaturke54");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cheat", cmdtext, true, 10) == 0)
{
SetPlayerHealth( playerid, 100.0 );
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, 250000);
SetPlayerAmmo(playerid,38,100000);
SetPlayerAmmo(playerid,34,100000);
SetPlayerAmmo(playerid,32,100000);
SetPlayerAmmo(playerid,31,100000);
SetPlayerAmmo(playerid,26,100000);
SetPlayerAmmo(playerid,24,100000);
SetPlayerAmmo(playerid,18,100000);
SendClientMessage(playerid, 0xF5FF9FAA, "Cheat.");
return 1;
}
return 0;
}
Das mit /cheat sollte einer auf den cheat sein