the one can be done with notepad the other needs pawno
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
if(dini_Exists("config.ini"))
{
SetGameModeText(dini_Get("config.ini", "name"));
ShowPlayerMarkers(dini_Bool("config.ini", "playermarkers"));
SetWorldTime(dini_Int("config.ini", "time"));
SetGravity(dini_Int("config.ini", "gravity"));
SetGamespeed(dini_Int("config.ini", "gamespeed"));
SetWaterLevel(dini_Float("config.ini", "waterlevel"));
PerfectHandling(dini_Bool("config.ini", "perfecthandling"));
Flyingcars(dini_Bool("config.ini", "flycars"));
Taxiboostjump(dini_Bool("config.ini", "taxijump"));
}
else{
dini_Create("config.ini");
print("config.ini created");
dini_Set("config.ini", "name", "changeme");
SetGameModeText("changeme");
dini_BoolSet("config.ini", "playermarkers", 1);
ShowPlayerMarkers(1);
dini_IntSet("config.ini", "time", 12);
SetWorldTime(12);
dini_IntSet("config.ini", "gravity", 100);
SetGravity(100);
dini_IntSet("config.ini", "gamespeed", 100);
SetGamespeed(100);
dini_FloatSet("config.ini", "waterlevel", 6.0);
SetWaterLevel(6.0);
dini_BoolSet("config.ini", "perfecthandling", 0);
PerfectHandling(0);
dini_BoolSet("config.ini", "flycars", 0);
Flyingcars(0);
dini_BoolSet("config.ini", "taxijump", 0);
Taxiboostjump(0);
}
public OnPlayerText(playerid, cmdtext[])
{
new cmd[256], idx, tmp[256];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "!v", true) == 0)
{
new carid, car;
tmp = strtok(cmdtext, idx);
carid = strval(tmp);
if(strlen(carid) == 0) return SendClientMessage(playerid, COLOR_RED, "USAGE: !v [vehicleid]");
new Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
car = CreateVehicle(carid, X, Y, Z, A, 1, 1, 0);
PutPlayerInVehicle(playerid, car);
SendClientMessage(playerid, 0xFFFFFFFF, "A car has spawned for you!");
return 0;
}
return 1;
}
public OnPlayerConnect(playerid)
{
SetWaterLevel(6.0);
SetGamespeed(100);
SetGravity(100);
return 1;
}
public OnPlayerSpawn(playerid,classid,teamid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}