GTA Közösség - A magyar GTA fórum
San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => A témát indította: Meta Pro - 2011. augusztus 17. - 14:49:54
-
Üdv megírtam egy idõ változtató Scriptet!
Lényege hogy a saját idõd változtathatód vele!
/mtime: Használat:/mtime [0-24]
Elkészítési idõ:5 perc
Készítõ: Extrem
Régi nevem:Meta Pro
Download:http://solidfiles.com/d/d5af/
-
szép lett ment a +
-
Kösz! ;D ;D ;D ;D ;D
-
Nice megy a +
-
Danke ;D ;D :D :D ;) ;) :) :) :)
-
Hát, elsõre nem rossz.
Itt az enyém. (nem teszteltem!)
[pawn]
#include a_samp
#include zcmd
CMD:mtime(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, 0xFFB700AA, \"Használat: /mtime [0-24]\");
else
{
SetPlayerTime(playerid, params[0], 0);
new string[128];
format(string, 128, \"MTime::=>%i:0>>\", params[0]);
SendClientMessage(playerid, 0xFFB700AA, string);
}
return 1;
}
[/pawn]
-
Hát, elsõre nem rossz.
Itt az enyém. (nem teszteltem!)
[pawn]
#include a_samp
#include zcmd
CMD:mtime(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, 0xFFB700AA, \"Használat: /mtime [0-24]\");
else
{
SetPlayerTime(playerid, params[0], 0);
new string[128];
format(string, 128, \"MTime::=>%i:0>>\", params[0]);
SendClientMessage(playerid, 0xFFB700AA, string);
}
return 1;
}
[/pawn]
Szép.
-
Igen ismerem ZCMD és gyorsabb! De unatkoztam és volt kedvem írni! ;D ;D ;D
-
Én is átírtam egy másik változatra ha nem baj. 8) És én se teszteltem. ;D
[pawn]CMD:mtime(playerid, params[])
{
new
time = strval(params);
if(time < 0 || time > 24) SendClientMessage(playerid, 0xFFB700AA, \"Használat: /mtime [0-24]\");
else
{
SetPlayerTime(playerid, time, 0);
new
str[32];
format(str, sizeof str, \"MTime::=>%i:0>>\", time);
SendClientMessage(playerid, 0xFFB700AA, str);
}
return 1;
}[/pawn]
Edit: pár elírás hiba javítva.
-
3 Fajta változat! ;D :D
-
Nekem tetszenek :D