24.03.2012, 17:33
pawn Код:
if(strcmp(cmd, "/duty", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][msJob] == 12 || PlayerInfo[playerid][msFaction] != 255 && DynamicFactions[PlayerInfo[playerid][msFaction]][fType] == 9)
{
if(PlayerToPoint(3, playerid,1173.2563,-1323.3102,15.3943))//cordenada
{
format(string, sizeof(string), "[Sindicato dos Mecвnicos:] %s encontra-se agora disponнvel para reparar qualquer avaria no seu veнculo. Ligue jб 666 !",GetPlayerNameEx(playerid));
SendClientMessageToAll(COLOR_NEWOOC, string);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "ERRO: Nгo estбs num Reboque!");