23.08.2011, 12:25
Ok so i wanna get the teleports from one stunt gm to another and its easier for me to just copy paste them than remake them using strcmp
they are like this
I got everything in order so the filterscript doesnt give errors (cause if i put it in my gamemode ,some commands just say unknown command ,it bugs my gm ) .
The weird thing is ,those cmd are NOT into the public onplayercommand text ,they are in NO public ,though in the public there is a
I have no idea how to make them work without remaking them using the default strcmp
any idea pls ? the filterscript loads but the teleports just dont work ,they dont show errors ,but dont teleport me either
they are like this
pawn Code:
CMD:race(playerid, params[])
{
SetTimerEx("Loaded", 3000, 0, "d", playerid);
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"~r~Bun ~b~Venit!",4000,6);
return SetVehiclePos(vehicleid,-154.4948,-187.6738,1.9254);
}
SetPlayerPos(playerid,-154.4948,-187.6738,1.9254);
GameTextForPlayer(playerid,"~r~Bun ~b~Venit!",4000,6);
return 1;
}
I got everything in order so the filterscript doesnt give errors (cause if i put it in my gamemode ,some commands just say unknown command ,it bugs my gm ) .
The weird thing is ,those cmd are NOT into the public onplayercommand text ,they are in NO public ,though in the public there is a
pawn Code:
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
I have no idea how to make them work without remaking them using the default strcmp
any idea pls ? the filterscript loads but the teleports just dont work ,they dont show errors ,but dont teleport me either