Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <base512>
- #define NULL 0
- #define this-> new
- #define class%0(%1) stock %0(%1)
- #define function%0(%1) forward %0(%1); %0(%1)
- class PlayerName(playerid, Name[MAX_PLAYER_NAME], len = sizeof(Name)) {
- GetPlayerName(playerid, Name, len);
- return Name;
- }
- main() {
- CallLocalFunction("OnPlayerConnect", "d", 0);
- printf("%s dołącza do serwera.", PlayerName(0, "Jezus"));
- return false;
- }
- public OnGameModeInit() {
- return CallLocalFunction("OnFilterScriptInit", ""), printf("WAT");
- }
- public OnPlayerConnect(playerid) {
- CallLocalFunction("OnGameModeInit", "", 0);
- printf("CZEGO?\nMIODU? DO ULA.");
- return true;
- }
- function testing(player, grosik) {
- printf("%s daje %d groszy", PlayerName(player, "Zdzisław"), grosik);
- return true;
- }
- public OnFilterScriptInit() {
- return CallLocalFunction("@cos", "");
- }
- function @cos() {
- this -> player, grosik = random(max(0, 1));
- return testing(player, grosik);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement