Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- new bool:FIRE[MAX_PLAYERS],FIRE1[MAX_PLAYERS],Float:Pos[3];
- #define Function: public
- #define ACMD(%1,%2) \
- OnPlayerCommandText(%1,%2)
- Function: ACMD(playerid, cmdtext[]) {
- if(strcmp(cmdtext, "/fire", true)){
- if(!FIRE{playerid}){
- GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
- FIRE1{playerid} = CreateObject(18689,Pos[0],Pos[1],Pos[2]-2.5,0.0,0.0,90);
- FIRE{playerid} = true;
- }
- else{
- FIRE1{playerid} = DestroyObject(18689);
- FIRE{playerid} = false;
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment