Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:dom_wyjscie(playerid, params[])
- {
- if(Administrator[playerid] < 4)
- return 0;
- if(isnull(params) || !IsNumeric(params))
- return SCM(playerid, -1, "/out_dom [hID]");
- new i = strval(params);
- new Float:x,Float:y,Float:z,Float:a;
- GetPlayerPos(playerid, x,y,z);
- GetPlayerFacingAngle(playerid, a);
- HouseInfo[i][hOX] = x;
- HouseInfo[i][hOY] = y;
- HouseInfo[i][hOZ] = z;
- HouseInfo[i][hOA] = a;
- 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]);
- mysql_query(strx);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment