08.08.2010, 19:03
Is there a function even remotely close to this? I need this, and I can't figure out a real work-around for it.
Thanks.
Thanks.
dude just go to samp wiki and see the carcolours or download a awesome program that helps me alot called samp script king
|
COMMAND:savev(playerid, params[])
{
new comment[128];
if(!sscanf(params, "s", comment))
{
if(File[playerid][Administrator] >= 1)
{
new veh = GetPlayerVehicleID(playerid);
new string[128], Float:A;
GetVehiclePos(veh, X, Y, Z);
GetVehicleZAngle(veh, A);
format(string, sizeof(string), "AddStaticVehicleEx(%d, %f, %f, %f, %f, 0, 0, 60000); //%s\n", GetVehicleModel(veh), X, Y, Z, A, comment);
new File:hFile;
hFile = fopen("SFRP/Tools/AddStaticVehicleEx.txt", io_append);
fwrite(hFile, string);
fclose(hFile);
}
}
else return SendClientMessage(playerid, grey, "[USAGE] /SaveV [Comment]");
return 1;
}