Jump to content

[Tutorial]Cum faci sa se schimbe mapname automat


KingZone

Recommended Posts

Deci sa va explic Ati vazut ca la unele servere mapname se schimba pur si simplu sub ochii vostri si vrei sa afli cum? ??? aici e raspunsul:
Code: [select]
#include <a_samp>

forward SchimbaNumele();
public SchimbaNumele()
{
new rand=random(6);
switch(rand)
{
case 0:SendRconCommand("mapname aici scrii");
case 1:SendRconCommand("mapname aici scrii");
case 2:SendRconCommand("mapname aici scrii");
case 3:SendRconCommand("mapname aici scrii");
case 4:SendRconCommand("mapname aici scrii");
case 5:SendRconCommand("mapname aici scrii");
}
return 1;
}
Ca sa setati timpul la care sa se schimbe trebuie sa adaugi la OnGameModeInit:
Code: [select]
SetTimer("SchimbaNumele",6000, true);
"6000" reprezinta dupa cat timp sa se schimbe 1 sec= 1000 puteti sa schimbati dupa bunul plac.
Daca aveti vreo problema postatio aici.
 

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.