18.06.2008, 23:35
What about... using it as a replacement For the Drivers license Test thing. EX: "Take test for 30PCash".
Heres my script:
Now, when I give myself 1000 ZCash, I type /myzcash and it says ZCash: 1000. So thats ok.
But when I try to take test, it says "Not enough ZCash!" So I don't know whats wrong. Using The DMV driving license test Script.
Heres my script:
Код:
if (GetPlayerZCash(playerid) < 30) { SendClientMessage(playerid,RED,"You don't have enough Zcash"); ShowMenuForPlayer(dmvoption[playerid],playerid); return 1; } if (DrivingLicense[playerid] == 1) { SendClientMessage(playerid,RED,"You already have a class C license!"); return 1; } GivePlayerZCash(playerid,-30); SetPlayerPos(playerid,-2027.8353, -98.8884, 35.1642); SetPlayerFacingAngle(playerid,355); SetCameraBehindPlayer(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,DrivingSchoolCP[0][0],DrivingSchoolCP[0][1],DrivingSchoolCP[0][2],5.0); SendClientMessage(playerid,GREEN,"Get ready!"); DMVCP[playerid]=0; SetPlayerInterior(playerid,0); DMVTest[playerid] = 1; SetVehicleParamsForPlayer(dmvcar,playerid,1,0);
But when I try to take test, it says "Not enough ZCash!" So I don't know whats wrong. Using The DMV driving license test Script.