Код:
COMMAND:addexportplace(playerid, params[]) {
new Float:x, Float:y, Float:z;
new type[24];
GetPlayerPos(playerid, x, y, z);
if(strcmp(type, "Car", true) == 0)
{
AddNewExportPlace( x , y , z, 1 );
SendClientMessage(playerid, COLOR_SYSTEM, "Car export place has been added!");
return 1;
}
else {
if(strcmp(type, "Boat", true) == 0)
{
AddNewExportPlace( x , y , z, 2 );
SendClientMessage(playerid, COLOR_SYSTEM, "Boat Export place has been added!");
return 1;
}
else {
if(strcmp(type, "Plane", true) == 0)
{
AddNewExportPlace( x , y , z, 3 );
SendClientMessage(playerid, COLOR_SYSTEM, "Plane Export place has been added!");
return 1;
}}}
return 1;
}
Код:
AddNewExportPlace( x , y , z, 1 );