Quote:
Originally Posted by DuongNghia
Can you make me some code, when we type cmd:rolldownwindow the window of door is go down and cmd:rollupwindow and the window up ?
|
pawn Код:
// globals variables
new wup;
new wdown;
CMD:rolldownwindow (playerid, params[])
{
if(wdown == 1) return SendClientMessage(playerid, -1,"[SERVER] The windows of the car, are already rolldown");
SendClientMessage(playerid,-1,"[SERVER] You have been roll down your windows");
wdawn = 1;
}
CMD:rollupwindow(playerid,params[])
{
if(wup == 1) return SendClientMessage(playerid, -1,"[SERVER] The windows of the car, are already rollup");
SendClientMessage(playerid,-1,"[SERVER] You have been roll up your windows");
wup = 1;
}