SA-MP Forums Archive
erm TIME!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: erm TIME!!! (/showthread.php?tid=111005)



erm TIME!!! - patchkinson - 29.11.2009

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "bikels", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
      return 1;
    }
    if(!strcmp(npcname, "duck", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehiclee, 0);
      return 1;
    }
    if(!strcmp(npcname, "androls", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleee, 0);
      return 1;
    }
    if(!strcmp(npcname, "bestkarting", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "damness", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "grove", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "kartingnice", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeeeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "dumbot", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeeeeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "warhydra", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeeeeeee, 0);
      return 1;
    }
    return 1;
  }

    if(IsPlayerNPC(playerid)) return 1;
    GivePlayerWeapon(playerid,25,3000);
    GivePlayerWeapon(playerid,34,3000);
    GivePlayerWeapon(playerid,26,3000);
    SetPlayerTime(playerid,0,0);


    return 1;
}
notice i have seplayertime at end of onplayerspawn so everyone has midnight
but after some time the server puts the player with day!!!
i use Y_Objects
is it because of that?
ANyWAYS, please HELP!


Re: erm TIME!!! - patchkinson - 29.11.2009

Please!!


Re: erm TIME!!! - RyDeR` - 29.11.2009

Don't bump..
And no It's not because Y_Objects.
Do you use TogglePlayerClock anywhere? Or is there a timer witch sets the clock after a choosen amount of time?


Re: erm TIME!!! - patchkinson - 29.11.2009

Quote:
Originally Posted by [WsR
RyDeR ]
Don't bump..
And no It's not because Y_Objects.
Do you use TogglePlayerClock anywhere? Or is there a timer witch sets the clock after a choosen amount of time?
nope. i use ladmin too btw!

please help me :-/