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)
- // #define function%0(%1) forward @%0(%1); public @%0(%1)
- class PlayerName(playerid, Name[MAX_PLAYER_NAME], len = sizeof(Name)) {
- GetPlayerName(playerid, Name, len);
- return Name;
- }
- main() {
- return CallLocalFunction("OnPlayerConnect", "d", 0), printf("%s dołącza do serwera.", PlayerName(0, "Jezus")), false;
- }
- public OnGameModeInit() {
- return CallLocalFunction("OnFilterScriptInit", ""), printf("WAT"), true;
- }
- public OnPlayerConnect(playerid) {
- return CallLocalFunction("OnGameModeInit", "", 0), printf("CZEGO?\nMIODU? DO ULA."), true;
- }
- function testing(player, grosik) {
- return printf("%s daje %d groszy", PlayerName(player, "Zdzisław"), grosik);
- }
- 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