BytzaSamp Posted June 23, 2011 Report Share Posted June 23, 2011 Salut m-am reapucat de sa-mp si am o problema la un server nu mai stiu cum sa fac ceva in joc intru si daca am level 0 vreu sa imi iau o masina cu comanda /car infernus zice ca nu am level 3 cum scot aceasta interdictie ? Ms Link to comment Share on other sites More sharing options...
Ryder_RO Posted June 23, 2011 Report Share Posted June 23, 2011 saluite cata in ladmin cmd asta dcmd_carsi inlocuiesteo cu astadcmd_car(playerid,params[]) { new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); tmp3 = strtok(params,Index); if(!strlen(tmp)) return SendClientMessage(playerid, red, "USAGE: /car [Modelid/Name] [colour1] [colour2]"); new car, colour1, colour2, string[128]; if(!IsNumeric(tmp)) car = GetVehicleModelIDFromName(tmp); else car = strval(tmp); if(car < 400 || car > 611) return SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model"); if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2); if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3); if(PlayerInfo[playerid][pCar] != -1 && !IsPlayerAdmin(playerid) ) CarDeleter(PlayerInfo[playerid][pCar]); new LVehicleID,Float:X,Float:Y,Float:Z, Float:Angle,int1; GetPlayerPos(playerid, X,Y,Z); GetPlayerFacingAngle(playerid,Angle); int1 = GetPlayerInterior(playerid); LVehicleID = CreateVehicle(car, X+3,Y,Z, Angle, colour1, colour2, -1); LinkVehicleToInterior(LVehicleID,int1); PlayerInfo[playerid][pCar] = LVehicleID; CMDMessageToAdmins(playerid,"CAR"); format(string, sizeof(string), "%s spawned a \"%s\" (Model:%d) colour (%d, %d), at %0.2f, %0.2f, %0.2f", pName(playerid), VehicleNames[car-400], car, colour1, colour2, X, Y, Z); SaveToFile("CarSpawns",string); format(string, sizeof(string), "You have spawned a \"%s\" (Model:%d) colour (%d, %d)", VehicleNames[car-400], car, colour1, colour2); return SendClientMessage(playerid,lightblue, string); } Link to comment Share on other sites More sharing options...
shamanfire Posted June 23, 2011 Report Share Posted June 23, 2011 Cauta pe http://forum.sa-mp.com sigur gasesti ceva folositor ,credema Link to comment Share on other sites More sharing options...
shaun Posted June 23, 2011 Report Share Posted June 23, 2011 te duci la dcmd_car sau CMD:care si la if( playerlevel sau getplayer level sau nuj ce ai >=3 ) in loc de 3 scrii 0 de ex:if(GetPlayerLevel(playerid) >= 0) CHECK MY CHANNEL!http://www.youtube.com/user/amysoica Link to comment Share on other sites More sharing options...
BytzaSamp Posted June 24, 2011 Author Report Share Posted June 24, 2011 gata ms Link to comment Share on other sites More sharing options...
Question
BytzaSamp
Salut m-am reapucat de sa-mp si am o problema la un server nu mai stiu cum sa fac ceva in joc intru si daca am level 0 vreu sa imi iau o masina cu comanda /car infernus zice ca nu am level 3 cum scot aceasta interdictie ? Ms
Link to comment
Share on other sites
4 answers to this question
Recommended Posts