Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new wejscie1;
- #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- public OnGameModeInit()
- {
- wejscie1 = CreatePickup (1318,1, 1608.3970,1816.8823,10.8203);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(placsf, 6, cmdtext);
- return 0;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == wejscie1)
- {
- GameTextForPlayer(playerid, "~w~Witaj w szpitalu!", 5000, 1);
- }
- return 1;
- }
- dcmd_placsf(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0,1608.3970,1816.8823,10.8203))
- {
- //jest w pickupie
- }
- else
- {
- SendClientMessage(playerid, RED, "Nie jesteล w pickupie!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement