I need Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I need Help (
/showthread.php?tid=404169)
I need Help -
Morkano - 02.01.2013
i need lcp command i used yagu race script please give lcp command
Re: I need Help -
Babul - 02.01.2013
iam using my own race script, but to make a /lcp is really not that hard. just have a look, youll get how it works:
Код:
CMD:lcp(playerid,cmdtext[]){
if(RaceIsOn==0)
{
SendClientMessage(playerid,MSGFAIL_COLOR,"There is no Race atm.");
return 1;
}
if(RaceIsOn==2 && FacingCheckpoint[playerid]>1)
{
new vehicleid=GetPlayerVehicleID(playerid);
if(vehicleid>0)
{
new CP=FacingCheckpoint[playerid]-1;
SetVehiclePos(vehicleid,ObjectX[CP],ObjectY[CP],ObjectZ[CP]+2);
//vehicle rotation auf naechsten CP setzen. atan
SetPVarInt(playerid,"PenaltyMS",GetPVarInt(playerid,"PenaltyMS")+5000);
}
}
return 1;
}