Hi,
ich möchte ein navigationssystem scripten. ich hab es schon so dass wenn man /navi macht einem angezeigt wird ob man in ls,lv oder in sf etwas finden möchte
das hab ich mit:
if(strcmp(cmd,"/navi",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pNavi] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "You dont own a Navigation System !");
return 1;
}
new x_navi[256];
x_navi = strtok(cmdtext, idx);
if(!strlen(x_navi)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /navi [District]");
SendClientMessage(playerid, COLOR_GREY, "Districts: LS, SF, LV");
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /navi [Businesses]");
SendClientMessage(playerid, COLOR_GREY, "Businesses: BLS, BSF, BLV");
return 1;
}
if(strcmp(x_navi,"ls",true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /navi LS [Place]");
SendClientMessage(playerid, COLOR_GREY, "Places: LSPD(Police Department LS), BSN(Burgershot Nord), HHQ(Hitmen HQ), LBHQ(Los Banditos HQ)");
SendClientMessage(playerid, COLOR_GREY, "Places: PBA(Paintball Arena), 8BA(8Ball Arena), LCNHQ(LCN HQ), FBI(F.B.I), ADAC(ADAC)");
SendClientMessage(playerid, COLOR_GREY, "Places: Medic(Hospital LS), AHC(Alhambra Club), JC(Jobcenter)");
SendClientMessage(playerid, COLOR_GREY, "Places: Bank(LS), GLS(Gun Shop LS), TLS(Taxi HQ), THQ(Trucker HQ LS), TLA(Truck load area LS)");
SendClientMessage(playerid, COLOR_GREY, "Places: CC(Car Central LS), MS(Materials Store LS)");
SendClientMessage(playerid, COLOR_GREY, "Places: CP(Caspoint), ACP(ADAC Cardepot), MDV(Madd Dogg´s Villa)");
return 1;
}
if(strcmp(x_navi,"lspd",true) == 0)
{
SendClientMessage(playerid, COLOR_BAN, "Please Follow the marker on the map");
SetPlayerCheckpoint(playerid, 1543.7554,-1675.7900,13.5571,265.6832);
return 1;
}
und ich möchte jetzt dass wenn man /navi ls lspd machen muss damit einen die markierung vom lspd angezeigt wird und nich /navi lspd
kann wer das machen oder mir sagen wie es geht??