Some Questions
#1

1. How do i make it so that everyone in the server has the same time and that 1 game hour goes by in one real minute? ALl mine does is base off my computer.

2. I got several spawnpoints, but how do i make it so that instead of a certain skin going to a certain spawnpoint, it randomizes. BTW i got regular skins, cop skins, pilot skins, so they need to be seperate.

3. How to i make a text appear above the skin in the class selection menu?

4. How do i make skins that require a certain score to use? Example: Cop - 50, Pilot - 25, etc.

5. How do i make certain skins spawn with certain weps?

6. How do i make a checkpoint that when you enter it you teleport?

7. How do i make a car that can only be used by people with a certain skin?

Plz help me with this, thx!
Reply
#2

Answer to 1. You can't. Since the sun shines at different points of the Earth, you can't technically have the same time. If you mean like an RP-like one, there should be a filterscript or something.
Reply
#3

2. I got several spawnpoints, but how do i make it so that instead of a certain skin going to a certain spawnpoint, it randomizes. BTW i got regular skins, cop skins, pilot skins, so they need to be seperate.

pawn Код:
//news
new Float:RandomSpawn[][10] = //change 10 to however many spawns you have.
{
    {1366.3746, 2173.3083, 11.1461, 294.6393},
    {1322.2386, 2120.1699, 13.7129, 5.1400},
    {1321.4244, 2155.9250, 11.0234, 174.7999},
    {1409.9850, 2100.8027, 12.0156, 345.9935},
    {1297.5820, 2216.2720, 19.8150, 230.0792},
    {1366.7742, 2196.3889, 9.7578, 188.4557},
    {1395.9301, 2214.9568, 12.0156, 128.4330}
};

//under onplayerspawn
    new rand = random(sizeof(RandomSpawn));

    SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
    SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
5. How do i make certain skins spawn with certain weps?

You do this with addplayerclass
https://sampwiki.blast.hk/wiki/AddPlayerClass


All i could help with sorry.
Reply
#4

Who can answer question 3, 4, 6 & 7?
Reply
#5

6. There's something similar to that, in this post.
https://sampforum.blast.hk/showthread.php?tid=190063
Reply
#6

Answer to Question 6.

Код:
new Checkpoint; //this is gonna be the name of your pickup example: new binco1;

public OnGameModeInIt
{
 Checkpoint = CreatePickup(PICKUPid, PickupTYPE, x,y,z, Virtual world); // pickup = Createpickup(1317, 1, 1337,1337,1337, -1); Hmm You can use ID 1317 instead of that long check point
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Checkpoint) // so if you did new binco1; you have to do it like this if(pickupid == binco1)
{
SetPlayerInterior(playerid, INTERIORID); // Interior ID from WIKI keep it 0.
SetPlayerPos(playerid, X,Y,Z); // X,Y,Z = //The place you want to teleport to
return 1;
}
Good luck mate.
Reply
#7

7.
pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
    if(GetVehicleModel(vehicleid) == vehiclemodelhere && GetPlayerSkin(playerid) == skinidhere)
    {

...


    }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,red,"* Sorry, you must have skin ID ... to use this vehicle.");
}
return 1;
}
Reply
#8

Thanks for all the help guys, you all that posted will get vip on my server.
Reply
#9

PLEASE SOMEONE I NEED AN ANSWER TO NUMBER 3 AND 4 PLZ! IM GIVING VIP ON MY SERVER IF YOU TELL ME HOW!
Reply
#10

3. Use GameTextForPlayer or use textdraws.

4. OnPlayerRequestClass

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    if(classid == /*skinhere*/ && GetPlayerScore(playerid) < 50
    {
        SendClientMessage(playerid,COLOR_GREEN,"You don't have enough points to use this skin! (50 are required)");
        return 0;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)