13.12.2009, 10:50
Quote:
Originally Posted by jaksimaksi
Can you make me the code? this is car spawning script:
Код:
new Float: angl; GetPlayerFacingAngle(playerid, angl); new Float: cx, Float: cy, Float: cz; GetPlayerPos(playerid, cx, cy, cz); { } { for(new i; i < 24; i++) { if(params[0] == CarNames[i][0] && params[1] == CarNames[i][1] && params[2] == CarNames[i][2]) { new id = CreateVehicle(CarIds[i], cx, cy, cz, angl, 3, 1, never); PlayerPlaySound(i,1047,0.0,0.0,0.0); PutPlayerInVehicle(playerid, id, 0); return 1; } } return SendClientMessage(playerid, AAD_COLOR_GREY, "This vehicle dont exist"); } } Код:
0.1807,2470.0994,16.4844 |
Код:
new Float: angl; GetPlayerFacingAngle(playerid, angl); new Float: cx, Float: cy, Float: cz; GetPlayerPos(playerid, cx, cy, cz); if(IsPlayerInRangeOfPoint(playerid,20.0,0.1807,2470.0994,16.4844)) { for(new i; i < 24; i++) { if(params[0] == CarNames[i][0] && params[1] == CarNames[i][1] && params[2] == CarNames[i][2]) { new id = CreateVehicle(CarIds[i], cx, cy, cz, angl, 3, 1, never); PlayerPlaySound(i,1047,0.0,0.0,0.0); PutPlayerInVehicle(playerid, id, 0); return 1; } } return SendClientMessage(playerid, AAD_COLOR_GREY, "This vehicle dont exist"); }else SendClientMessage(playerid,0xAA3333AA,"You're not in the spawn zone"); }