05.01.2012, 10:04
Hello..I have big problem..Look command and CP-s and pls help me..
wHat is the problem?
Problem is i type /work and i have firsh checkpoint ,but when i enter 1. cp dont want show me 2. cp ..Bad english sry,from croatia
Help pls everbody
Код:
if(PlayerInfo[playerid][pBager] > 0) { if(IsPlayerInRangeOfPoint(playerid,5.2,2848.3582,-2181.7900,6.3902)) { if(PlayerInfo[playerid][pBager] == 1) { new Veh = GetPlayerVehicleID(playerid); if(Veh == 486) { SetPlayerCheckpoint(playerid, 2841.9373,-2144.3010,8.8989,5.0); PlayerInfo[playerid][pBager] = 2; } } } if(IsPlayerInRangeOfPoint(playerid,5.2,2841.9373,-2144.3010,8.8989)) { if(PlayerInfo[playerid][pBager] == 2)// { new Veh = GetPlayerVehicleID(playerid); if(Veh == 486) { SetPlayerCheckpoint(playerid, 2837.0498,-2177.3713,10.8271,5.0); PlayerInfo[playerid][pBager] = 3; } } } if(IsPlayerInRangeOfPoint(playerid,5.2,2837.0498,-2177.3713,10.8271)) { if(PlayerInfo[playerid][pBager] == 3)// { new Veh = GetPlayerVehicleID(playerid); if(Veh == 486) { SetPlayerCheckpoint(playerid, 2832.4480,-2140.4182,11.3788,5.0); PlayerInfo[playerid][pBager] = 4; } } } if(IsPlayerInRangeOfPoint(playerid,5.2,2832.4480,-2140.4182,11.3788)) { if(PlayerInfo[playerid][pBager] == 4)// { new Veh = GetPlayerVehicleID(playerid); if(Veh == 486) { SetPlayerCheckpoint(playerid, 2830.9219,-2174.0139,11.3617,5.0); PlayerInfo[playerid][pBager] = 5; } } } if(IsPlayerInRangeOfPoint(playerid,5.2,2830.9219,-2174.0139,11.3617)) { if(PlayerInfo[playerid][pBager] == 5)// { new Veh = GetPlayerVehicleID(playerid); if(Veh == 486) { SetPlayerCheckpoint(playerid, 2831.4207,-2150.7180,10.2734,5.0); PlayerInfo[playerid][pBager] = 6; } } } if(IsPlayerInRangeOfPoint(playerid,5.2,2831.4207,-2150.7180,10.2734)) { if(PlayerInfo[playerid][pBager] == 6) { new Veh = GetPlayerVehicleID(playerid); if(Veh == 486) { new cash=(random(100)+5); DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, "=============================================="); SendClientMessage(playerid, COLOR_LIGHTBLUE, " ** Zavrsio si sa ravnanjem,dobio si $%d ! " , cash); SafeGivePlayerMoney(playerid, cash); PlayerInfo[playerid][pBager] = 0; } } } }
Код:
if(!strcmp(cmdtext, "/work", true)) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] != 24) { SendClientMessage(playerid, COLOR_GREY, " Nisi Gradjevinar ! "); return 1; } if(PlayerIsVozib[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Vec si na poslu ! "); return 1; } if(JobDuty[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Nemas Skin Gradjevinara ! "); return 1; } if(IsABager(idcar)) { PlayerInfo[playerid][pBager] = 1; SetPlayerCheckpoint(playerid, 2848.3582,-2181.7900,6.3902, 5.0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO:Zapoceo si posao na gradilistu.Poravnaj bagerom ovaj teren."); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /work",d,m,y,h,mi,s,sendername); CommandLog(string); } } return 1; }
Problem is i type /work and i have firsh checkpoint ,but when i enter 1. cp dont want show me 2. cp ..Bad english sry,from croatia
