Exemplo n.º 1
0
 public static Account GetExtension(this GTANetworkAPI.Client player)
 {
     if (!player.HasData("extension"))
     {
         return(null);
     }
     return(player.GetData("extension"));
 }
Exemplo n.º 2
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
 }