This is the OLD COMMAND My newer copied one is below under "public OnPlayerCommandText(playerid, cmdtext[]) {"
if(strcmp(cmd, "/loco", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN, "*** Marker to AutoLoco Set");
checkpoint[playerid] = AUTOLOCO;
SetPlayerCheckpoint(playerid,2644.6550,-2003.5380,13.1840,4);
return 1;
}
This part is under public OnPlayerEnterCheckpoint(playerid) {
printf("OnPlayerEnterCheckpoint(%d)", playerid);
switch (checkpoint[playerid]) {
case AUTOLOCO: {
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_RED, "*** Welcome to AutoLoco Lowrider.");
}
}
return 1;
}
THIS IS THE NEW ONE FOR WANGS AUTOS
Under "public OnPlayerCommandText(playerid, cmdtext[]) {"
if(strcmp(cmd, "/wang", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN, "*** Marker to Wangs Autos Set");
checkpoint[playerid] = WANGS;
SetPlayerCheckpoint(playerid,-1968.9910,294.1454,35.1719,4);
return 1;
}
This is under public OnPlayerEnterCheckpoint(playerid) { But under the above command for /loco
public OnPlayerEnterCheckpoint(playerid) {
printf("OnPlayerEnterCheckpoint(%d)", playerid);
switch (checkpoint[playerid]) {
case AUTOLOCO: {
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_RED, "*** Welcome to Wangs Autos.");
}
}
return 1;
}