Bob_Marley

[PAWNO] Fire

Apr 20th, 2012
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.67 KB | None | 0 0
  1. #include                       a_samp
  2. new bool:FIRE[MAX_PLAYERS],FIRE1[MAX_PLAYERS],Float:Pos[3];
  3. #define Function: public
  4. #define ACMD(%1,%2) \
  5.         OnPlayerCommandText(%1,%2)     
  6.  
  7. Function: ACMD(playerid, cmdtext[]) {
  8.         if(strcmp(cmdtext, "/fire", true)){
  9.             if(!FIRE{playerid}){
  10.                 GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  11.                 FIRE1{playerid} = CreateObject(18689,Pos[0],Pos[1],Pos[2]-2.5,0.0,0.0,90);
  12.                 FIRE{playerid} = true;
  13.             }      
  14.             else{
  15.                 FIRE1{playerid} = DestroyObject(18689);
  16.                 FIRE{playerid} = false;
  17.             }  
  18.             return 1;
  19.         }
  20.         return 0;    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment