21.05.2012, 23:36
Quote:
Y en el caso que no lo tenga full como hago? o no hay forma
Yo lo descarge de internet.. no instalado de cd.. |
pawn Код:
if(!strcmp(cmdtext, "/SaveEx", true, 7)){
if(IsPlayerAdmin(playerid)){
new Float:P[4], str[128], File:Fhnd;
if(IsPlayerInAnyVehicle(playerid)){
new tmp[2], veh;
veh = GetPlayerVehicleID(playerid);
GetVehiclePos(veh, P[0], P[1], P[2]);
GetVehicleColor(veh, tmp[0], tmp[1]);
GetVehicleZAngle(veh, P[3]);
format(str, 128, "AddStaticVehicle(%i, %f, %f, %f, %f, %i, %i); \\\\%s", GetVehicleModel(veh), P[0], P[1], P[2], P[3], tmp[0], tmp[1], cmdtext[7]);
}else{
GetPlayerPos(playerid, P[0], P[1], P[2]);
GetPlayerFacingAngle(playerid, P[3]);
format(str, 128, "AddPlayerClass(%i, %f, %f, %f, %f, 0, 0, 0, 0, 0, 0); \\\\%s", GetPlayerSkin(playerid), P[0], P[1], P[2], P[3], cmdtext[7]);
}
if(fexist("savedpositions.txt")){
Fhnd = fopen("savedpositions.txt", io_append);
fwrite(Fhnd, str);
fwrite(Fhnd, "\r\n");
fclose(Fhnd);
}
else{
Fhnd = fopen("savedpositions.txt", io_write);
fwrite(Fhnd, str);
fwrite(Fhnd, "\r\n");
fclose(Fhnd);
}
PlayerPlaySound(playerid, 1057, P[0], P[1], P[2]);
return SendClientMessage(playerid, 0x00FF00FF, "Posicion guardada exitosamente.");
}
}