KaLu17

[pawno.pl] -> #25030

Mar 27th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.71 KB | None | 0 0
  1. CMD:dom_wyjscie(playerid, params[])
  2. {
  3.         if(Administrator[playerid] < 4)
  4.             return 0;
  5.  
  6.         if(isnull(params) || !IsNumeric(params))
  7.             return SCM(playerid, -1, "/out_dom [hID]");
  8.  
  9.         new i = strval(params);
  10.         new Float:x,Float:y,Float:z,Float:a;
  11.         GetPlayerPos(playerid, x,y,z);
  12.         GetPlayerFacingAngle(playerid, a);
  13.  
  14.         HouseInfo[i][hOX] = x;
  15.         HouseInfo[i][hOY] = y;
  16.         HouseInfo[i][hOZ] = z;
  17.         HouseInfo[i][hOA] = a;
  18.  
  19.         format(strx, sizeof strx, "UPDATE `house` SET `outx` = '%f',`outy` = '%f',`outz` = '%f', `outa` = '%f' WHERE `id` = '%d'", x,y,z,a, HouseInfo[i][hID]);
  20.         mysql_query(strx);
  21.         return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment