15.08.2013, 00:20
HELLO i was wondering if i could make a teleport command for specific players?
why?
cause i have private mapped houses that i want only specific players with matching names to teleport there a bit like private cars but with commands?
btw i do use
dcmd
thank you much appreciated
why?
cause i have private mapped houses that i want only specific players with matching names to teleport there a bit like private cars but with commands?
btw i do use
dcmd
Код:
dcmd(stunt,5,cmdtext);
dcmd_stunt(playerid, cmdtext[]) {
#pragma unused cmdtext
SetPlayerPos(playerid, 3362.1589355469,-2069.42578125,46.729736328125);
new name[24], string[128];
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
{
new vehid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehid,3362.1589355469,-2069.42578125,46.729736328125);
PutPlayerInVehicle(playerid,vehid,0);
}
GetPlayerName(playerid, name, 24);
format(string, 128, "{00FFEE}%s (%d){C9FFAB} ..::has gone to do some stunt::..{6600FF}(/STUNT)", name, playerid);
SendClientMessageToAll(playerid, string);
return 1;
}




There are many ways of doing this, I prefer strfind than to strcmp, because strcmp compares different strings, strfind just finds it if you put a correct definitive on it