Beispiel #1
0
 public void PlayerEnterpoint(GTANetworkAPI.ColShape colShape, GTANetworkAPI.Client client)
 {
     //Matrun Collision Enter
     foreach (MatRun m in materialRuns)
     {
         Vector3 dropp = new Vector3(m.dposX, m.dposY, m.dposZ);
         if (Con.IsPlayerInRangeOf(client, dropp, 3))
         {
             int matpackage = client.GetData("MATPACKAGE");
             if (matpackage < 1)
             {
                 return;
             }
             int Pmats = Getplayerstat(client, "MATERIALS");
             client.SendChatMessage("~r~You have received 250 materials.");
             Setplayerstat(client, "MATERIALS", Pmats + 250);
             client.SetData("MATPACKAGE", 0);
             client.TriggerEvent("deletewaypoint");
             return;
         }
     }
     //Matrun Collision Enter end
 }
Beispiel #2
0
 public static void SetAccount(this GTANetworkAPI.Client player, Account playerAccount)
 {
     player.SetData("extension", playerAccount);
 }