Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #include zcmd
- new damagetime[MAX_PLAYERS];
- //Method #1
- DamageCheck(playerid)
- {
- if(damagetime[playerid] == 1)
- {
- SendClientMessage(playerid, red, "SERVER: You cannot use any command or checkpoint while losing health!");
- return 1;
- }
- else
- {
- return 0;
- }
- }
- CMD:apple(playerid, params[])
- {
- if(!DamageCheck(playerid))
- {
- printf("You can use it nigga");
- }
- else
- {
- print("fuck off nigga");
- }
- return 1;
- }
- //Method #2
- #define DamageCheck(%0);\
- if(damagetime[%0] == 1)\
- {\
- SendClientMessage(%0, red, "SERVER: You cannot use any command or checkpoint while losing health!");\
- return 1;\
- }
- CMD:apple2(playerid, params[])
- {
- DamageCheck(playerid);
- printf("You can use it nigga");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement