22.02.2014, 15:03
Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0 , -1195.59155, -1021.71301, 131.74001 )) { if(playerDB[playerid][specialybe] == 42 || playerDB[playerid][admin] >= 4) { if(!Vartai[1]) { MoveDynamicObject( gstreet, -1195.59155, -1021.71301, 131.74001, 0.00000, 0.00000, 90.00000, 92.0 ); //CreateDynamicObject(980, -1195.59155, -1021.71301, 131.74001, 0.00000, 0.00000, 90.00000); GameTextForPlayer(playerid, "~G~ Atidarote vartus!", 3000, 5); Vartai[1] = true; } else { MoveDynamicObject( gstreet, -1195.59155, -1021.71301, 124.74001, 0.00000, 0.00000, 90.00000, 92.0 ); GameTextForPlayer(playerid, "~R~ Uzdarote vartus!", 3000, 5); Vartai[1] = false; } } return 0; }
Код:
gstreet = CreateDynamicObject(980, -1195.59155, -1021.71301, 131.67999, 0.00000, 0.00000, 90.00000);