Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- char CLEAN[] = "jest czyste, może grać.";
- char NOT_CLEAN[] = "wywołuje AIDS i raka.";
- char PlayerName(int playerid) {
- char Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Name, sizeof(Name));
- return * Name;
- }
- SAMPGDK_CALLBACK_EXPORT bool SAMPGDK_CALLBACK_CALL OnPlayerDisconnect(int playerid, int reason) {
- StopAudioStreamForPlayer(playerid);
- return true;
- }
- SAMPGDK_CALLBACK_EXPORT bool SAMPGDK_CALLBACK_CALL OnPlayerText(int playerid, const char * text) {
- char __Text[200];
- sprintf(__Text, "%s: %s", PlayerName(playerid), text);
- SendClientMessage(playerid, -1, __Text);
- printf(__Text);
- return false;
- }
- SAMPGDK_CALLBACK_EXPORT void SAMPGDK_CALLBACK_CALL OnClientCheckResponse(int playerid, int actionid, int memaddr, int retndata) {
- printf("Sprawdzanie gracza %s:\n%d\n%d\n%d\n%d\n%d", PlayerName(playerid), playerid, actionid, memaddr, NULL, retndata);
- switch(retndata) {
- case 0xA0: printf("GTA gracza %s %s", PlayerName(playerid), CLEAN), SendClientMessage(playerid, -1, "Twoje GTA jest czyste, zapraszamy do gry."); break;
- default: printf("GTA gracza %s %s", PlayerName(playerid), NOT_CLEAN),
- SendClientMessage(playerid, -1, "Twoje GTA ma zainstalowany pewien dodatek, który wywołuje wirusy i AIDS. Już to naprawiamy..."),
- PlayAudioStreamForPlayer(playerid, "http://alldev.eu/html/mp3/Alabare%20a%20mi%20Senor.mp3", 0.0, 0.0, 0.0, 0.0, false);
- }
- }
- SAMPGDK_CALLBACK_EXPORT unsigned int SAMPGDK_CALLBACK_CALL Supports() {
- return sampgdk_Supports() | SUPPORTS_PROCESS_TICK;
- }
- SAMPGDK_CALLBACK_EXPORT bool SAMPGDK_CALLBACK_CALL Load(void **ppData) {
- return sampgdk_Load(ppData);
- }
- SAMPGDK_CALLBACK_EXPORT void SAMPGDK_CALLBACK_CALL Unload() {
- sampgdk_Unload();
- }
- SAMPGDK_CALLBACK_EXPORT void SAMPGDK_CALLBACK_CALL ProcessTick() {
- sampgdk_ProcessTick();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement