Jump to content

[PAWN] How to make Multiple Fast Commands to your script


Dion ibe
 Share

Recommended Posts

**--------------------If You Need Help Here--------------------**
Hello, i'll be showing u how to make Multiple Fast Commands to your script
if (strcmp("/kill", cmdtext, true, 10) == 0)
{ SetPlayerHealth(playerid, 0); return 1;
}
In this i was showing a command is going to set player hp 0 which is he's going to die
if (strcmp("/heal", cmdtext, true, 10) == );
{ SetPlayerHealth(playerid, 100); return 1;
}
In this i was showing a command that heal the player
sets his health to 100 FULL HEALTH
if (strcmp("/halfhp", cmdtext, true, 10) == );
{ SetPlayerHealth(playerid, 50 return 1;
}
In this i was showing a command that heal the player
sets his health to 50 HALF HEALTH
if (strcmp("/ak cmdtext, true, 10) == );
{ GivePlayerWeapon(playerid, 30, 10000); 30 = weapon id 10000 = bullets return 1;
}

*Correct or Copy//cut in your script,Thanks For your time ,G00D Luck ! :*:P:):):*

Edited by Cdorsu
Link to comment
Share on other sites

Bine lucrat, bravo :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.