09.02.2013, 16:17
Ok, so this is the script
if(!strcmp(cmdtext, "/loadtruck"))
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You are not driving a truck from the depot.");
IsPlayerInRangeOfPoint(playerid, 1, 2428.7221679688, -2102.3930664063, 13.552991867065);
{
ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Wh at do you want to load?","Clothes - 7.000$ \nWeapons - 9mm + 5.000$ \nEquipment - Armor + 5.500$ \nGas - 15.000$ \nPizza - 7.000$","Load","Cancel");
}
return 1;
}
return 0;
}
When i type /loadtruck when im out of the loadtruck location it shows me the dialog again, but i want to say "You are not at the loadplace."
if(!strcmp(cmdtext, "/loadtruck"))
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You are not driving a truck from the depot.");
IsPlayerInRangeOfPoint(playerid, 1, 2428.7221679688, -2102.3930664063, 13.552991867065);
{
ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Wh at do you want to load?","Clothes - 7.000$ \nWeapons - 9mm + 5.000$ \nEquipment - Armor + 5.500$ \nGas - 15.000$ \nPizza - 7.000$","Load","Cancel");
}
return 1;
}
return 0;
}
When i type /loadtruck when im out of the loadtruck location it shows me the dialog again, but i want to say "You are not at the loadplace."