Posts: 15
Threads: 4
Joined: Jul 2009
Reputation:
0
Can someone create the /v command for me?
I can't find ik anywhere, and if i use Simon's Debug filterscripts then my gamemode commands aren't working.
I hope someone can post the /v command, Just the /v command and nothing else,
Please tell to hoe to put it in my Gamemode.
Greetz, Jeffrey.
Posts: 15
Threads: 4
Joined: Jul 2009
Reputation:
0
Hmm... Can someone post/make a filterscript with the /v command only?
Posts: 350
Threads: 126
Joined: Mar 2009
Reputation:
0
if(strcmp(cmd, "/v", true) == 0) // can type /v carname/model
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "Error: Use /v model name/ ID");
return 1;
}
new car;
if (car >= 611 || car <= 400)
{
car = strval(tmp);
if(car < 400 || car > 611) return SendClientMessage(playerid, RED, "ERROR: vehicle id must between 400 -611");
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "ERROR: /veh [id] [color1] [color2]");
return 1;
}
new color1 = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "ERROR: /veh [id] [color1] [color2]");
return 1;
}
new color2 = strval(tmp);
new Float:X,Float:Y,Float:Z,Float:A;
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, A);
new carid = CreateVehicle(car, X,Y,Z, A, color1, color2, 600000000);
PutPlayerInVehicle(playerid, carid, 0);
}
}
Posts: 15
Threads: 4
Joined: Jul 2009
Reputation:
0
Erm.. Can someone create the whole code?
With Admin lv 4 please.