17.09.2009, 19:15
It took me a while since I was distracted by your display picture >.<
but here, try this.
You have to GetPlayerPos, you left that out.
but here, try this.
Код:
if(strcmp(cmd ,"/carunlock", true )== 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin]>=1) { for(new c=0;c<CAR_AMOUNT;c++) { new Fload:r1,Floar:r2,Floatr3; GetPlayerPos(playerid, r1, r2, r3); if(PlayerToPoint(4.0,playerid,r1,r2,r3)) { gCarLock[c] = 0; SendClientMessage(playerid, COLOR_GREY, "Cea mai apropiata masina de tine a fost deschisa"); } } } } }